Skip to content
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

Doesn't understand {@const x = 42} of Svelte v3.46.0 #272

Closed
tv42 opened this issue Jan 12, 2022 · 1 comment · Fixed by #273
Closed

Doesn't understand {@const x = 42} of Svelte v3.46.0 #272

tv42 opened this issue Jan 12, 2022 · 1 comment · Fixed by #273

Comments

@tv42
Copy link

tv42 commented Jan 12, 2022

Svelte's latest release added @const to the template syntax. This plugin doesn't understand the new syntax and errors out.

https://github.com/sveltejs/svelte/blob/master/CHANGELOG.md#3460

npm run format
...
[error] src/routes/foo.svelte: Error: unknown node type: ConstTag
[error]     at Object.print (/home/blah/blah/node_modules/prettier-plugin-svelte/plugin.js:1328:11)
[error]     at callPluginPrintFunction (/home/blah/blah/node_modules/prettier/index.js:14259:21)
dummdidumm pushed a commit to dummdidumm/prettier-plugin-svelte that referenced this issue Jan 12, 2022
Fixes sveltejs#272

Also update package-lock.json for npm 8
dummdidumm added a commit that referenced this issue Jan 12, 2022
Fixes #272

Also update package-lock.json for npm 8
@tv42
Copy link
Author

tv42 commented Jan 12, 2022

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant