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

voscausa opened this issue Sep 24, 2020 · 1 comment


Copy link

@voscausa voscausa commented Sep 24, 2020

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

  • (!) Plugin svelte: 'test1.say' is not defined
  • (!) Plugin svelte: 'test2.say' is not defined
  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';

<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> -->
Copy link

@Conduitry Conduitry commented Sep 24, 2020

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
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants
You can’t perform that action at this time.