-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
CompileError [ParseError]: <script> must have a closing tag #115
Comments
Try escaping the closing "style" tag: - </style>
+ <\/style> |
I tried but no success. I also tried double escape via \\. |
I found a good workaround to put my ...
... into a separate style.js file. Exporting/Importing it again solves the problem. |
btw. there is a similar issue here... |
When creating a const String variable inside <script></script> which contains the string <style> (e.g. while injecting a css style into an iframe later on), I receive CompileError [ParseError]: <script> must have a closing tag as an error and sveld stops generating.
The code works fine under normal Svelte conditions. Wondering if another preprocessor must run before rollup-plugin.js:164
Example:
Output:
The text was updated successfully, but these errors were encountered: