-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Identifier has alreay been declared error when naming a type the same as a variable in svelte5 script #13125
Comments
moving to svelte repo |
adding info from @gtm-nayan cause is in acorn-typescript that just has one scope for both |
In the meantime, either name them differently, or reenable the script preprocessor in your config (it was disabled by default for vite-plugin-svelte 4): |
@dummdidumm I tried this and it works, but is there a way to get rid of the red squiggly lines |
Describe the bug
cant have smae name as variable ...
after using @sveltejs/vite-plugin-svelte@4.0.0-next.6
Reproduction URL
Hello {data.name}!
Reproduction
link
Logs
System Info
The text was updated successfully, but these errors were encountered: