language-tools: Unexpected token. Did you mean `{'>'}` or `>`?

svelte

Describe 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

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 50 (30 by maintainers)

Commits related to this issue

Most upvoted comments

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 and prettier folders from the svelte-language-server\node_modules and all seems well, but you could “build” everything and not rely on the node_modules right?]

Woo Hoo! Thanks!

svelte2tsx already relies heavily on the svelte parser, and in language-server we need it in SveltePlugin, and apart from that we only need HTML parsing to get the script/style tags. So relying on the parser would be a good choice I think.