You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compiler with fail with Cannot read properties of undefined (reading 'index') in Node and Chrome. undefined is not an object (evaluating 'member.index') in Safari.
Having the import in the normal script tag errors too, but is perfectly valid, with the message of Identifier 'FOO' has already been declared, which is clear of what the error is. I think we should have the same error message when the import is in context="module"
Describe the bug
If I import a variable in
context="module"
, and in the normal script tag declare the same variable name, e.g.Compiler with fail with
Cannot read properties of undefined (reading 'index')
in Node and Chrome.undefined is not an object (evaluating 'member.index')
in Safari.Having the import in the normal script tag errors too, but is perfectly valid, with the message of
Identifier 'FOO' has already been declared
, which is clear of what the error is. I think we should have the same error message when the import is incontext="module"
Originally reported at sveltejs/vite-plugin-svelte#243
Reproduction
https://svelte.dev/repl/cd32e723442a46a581de4d2efadc4037?version=3.44.3
Logs
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: