Unexpected token. Did you mean `{'>'}` or `>`?
See original GitHub issueDescribe the bug
On a perfectly good app.svelte
file I’m getting the above.
System (please complete the following information):
- OS: Windows
- IDE: VSCode
- Plugin/Package: Svelte Beta
Issue Analytics
- State:
- Created 3 years ago
- Comments:50 (30 by maintainers)
Top Results From Across the Web
Unexpected token. Did you mean `{'}'}` or `}`? JSX ...
I'm getting the error: Error: Unexpected token. Did you mean {'}' ...
Read more >unexpected token. did you mean `{'>'}` or `>`? react
For anyone facing this issue: uninstalled `prettier`, restart VScode, and re-install `prettier` and everything works fine.
Read more >SyntaxError: Unexpected token - JavaScript - MDN Web Docs
The JavaScript exceptions "unexpected token" occur when a specific language construct was expected, but something else was provided.
Read more >How To Fix - "Parsing error: Unexpected Token" in React.js ...
Such “Unexpected token” signify a common behavioural problem – somewhere in your code a specific construct was supplied, but the system expected something ......
Read more >Documentation - TypeScript 3.9
// Unexpected token. Did you mean `{'>'}` or `>`? That error message came with a handy quick fix, and ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ve opened another request regarding the optimization of the vs code extension size on disk (currently 150mb). Can you comment on this? [I have deleted the
typescript
andprettier
folders from thesvelte-language-server\node_modules
and all seems well, but you could “build” everything and not rely on thenode_modules
right?]Woo Hoo! Thanks!