Skip to content

Get an error when binding to exported const variable #647

@dkzlv

Description

@dkzlv

Describe the bug
If you use two-way binding with an exported const variable, it shows an error.

To Reproduce
Svelte allows to use two-way binding syntax to bind a local variable to component's exported const variable. REPL.

Currently the plugin will show an error, saying Property <> does not exist on type IntrinsicAttributes & ....

Expected behavior
I didn't know you can do that (usually I bind component instance to a variable and then access the exported variable through instance), but if Svelte supports it so should the plugin, I guess.

System (please complete the following information):

  • OS: OS X
  • IDE: VSCode latest
  • Plugin/Package: Svelte for VS Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    FixedFixed in master branch. Pending production release.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions