-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
svelte parsing error in template literals #346
Comments
Thank you for posting the issue and sharing the repo to reproduce. As a workaround, I think the following code will work fine. {@html `<\u{73}cript nonce="%sveltekit.nonce%">(${setInitialClassState.toString()})();</script>`} |
This is parser issue, so I will transfer this issue to |
@ota-meshi : this workaround no longer seems to work with Svelte5. It renders as text instead of a script tag: This code is imported from SkeletonUI: https://github.com/skeletonlabs/skeleton/blob/c2700cba8dd3ad71ab74c22603a94a598d485b81/packages/skeleton/src/lib/utilities/LightSwitch/LightSwitch.svelte#L76-L77 |
Before You File a Bug Report Please Confirm You Have Done The Following...
What version of ESLint are you using?
8.41.0
What version of
eslint-plugin-svelte
are you using?2.29.0
What did you do?
Configuration
What did you expect to happen?
I migrated over to this plugin from the now deprecated
eslint-plugin-svelte3
. The previous one didn't throw this parsing error.What actually happened?
/parsing-error-eslint-plugin-svelte/src/routes/+page.svelte 11:45 error Parsing error: ')' expected ✖ 1 problem (1 error, 0 warnings)
Link to GitHub Repo with Minimal Reproducible Example
https://github.com/AdrianGonz97/parsing-error-eslint-plugin-svelte
Additional comments
No response
The text was updated successfully, but these errors were encountered: