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
"Unexpected token (Note that you need plugins to import files that are not JavaScript)" is an error from Rollup actually, which generally indicates that the Svelte compiler is outputting invalid js, in this case { getNamectx.func }.
This works fine:
This breaks:
Looks like there's some too greedy function hoisting going on.
REPL: https://svelte.dev/repl/d1fcf63ccfea462f948fcc4cc16c3028?version=3.4.4
EDIT: Another example of shorthand methods breaking in a different way:
Compiler refuses to compile and says:
Unexpected token (Note that you need plugins to import files that are not JavaScript)
https://svelte.dev/repl/6e2cf0c00f85488195f4a47eee22c1e0?version=3.4.4
The text was updated successfully, but these errors were encountered: