Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.16.0 Support use:obj.method as actions returns a svelte(missing-decalaration) #5451

Closed
voscausa opened this issue Sep 24, 2020 · 1 comment · Fixed by #5454
Closed

3.16.0 Support use:obj.method as actions returns a svelte(missing-decalaration) #5451

voscausa opened this issue Sep 24, 2020 · 1 comment · Fixed by #5454

Comments

@voscausa
Copy link

Using support for 'use:obj.method={..}' returns:

  • (!) Plugin svelte: 'test1.say' is not defined
  • (!) Plugin svelte: 'test2.say' is not defined
<script>
  class Test {
    say(node, msg) {
      node.innerHTML = 'class: ' + msg;
    };
  }
  const test2 = new Test();

  const test1 = {
    say(node, msg) {
      node.innerHTML = 'obj: ' + msg;
    }
  };

  function test(node, msg) {
    node.innerHTML = msg;
  };
  let hi = 'Hi';
</script>

<div use:test={hi}></div>
<!-- svelte-ignore missing-declaration -->
<div use:test1.say={hi}></div>
<!-- svelte-ignore missing-declaration -->
<div use:test2.say={hi}></div> -->
@Conduitry
Copy link
Member

This should be fixed now in 3.27.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants