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

Svelte for VS Code 109.4.0 displays an incorrect error in the spread syntax for #each statement. #2636

Open
comman-fukui opened this issue Dec 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@comman-fukui
Copy link

comman-fukui commented Dec 24, 2024

Describe the bug

{#each items as { propA, ...restProps }}
  {propA} {restProps}
{/each}

Svelte for VS Code version 109.4.0 shows an error when trying to get the properties of an array element with the above code.

Svelte-check shows no error.
Svelte for VS Code version 109.3.3 or earlier does not indicate an error.
I think there is a bug in version 109.4.0.

Reproduction

https://github.com/comman-fukui/issue-vscode-svelte-extension
Repository url for reproduction.
You can check it in the file src/routes/+page.svelte.

Expected behaviour

As with version 109.3.3, no errors are displayed.

System Info

  • OS: Ubuntu 22.04.5 LTS
  • IDE: VSCode 1.96.2

Which package is the issue about?

Svelte for VS Code extension

Additional Information, eg. Screenshots

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant