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

🐛 BUG: "Unterminated string literal" when breaking class="" into multiple lines #1047

Open
gersomvg opened this issue Oct 9, 2024 · 0 comments
Labels
- P4: important Violate documented behavior or significantly improves performance (priority)

Comments

@gersomvg
Copy link

gersomvg commented Oct 9, 2024

What version of @astrojs/compiler are you using?

2.10.3

What package manager are you using?

pnpm

What operating system are you using?

mac

Describe the Bug

Using prettier-plugin-classnames will lead to newlines being inserted into class="". This is valid HTML as far as I know, but Astro won't allow it and throws a Unterminated string literal.

Earlier issue over at the astro repo: withastro/astro#4029

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-yiuhkm?file=src%2Fpages%2Findex.astro

@github-actions github-actions bot added the needs triage Issue needs to be triaged label Oct 9, 2024
@MoustaphaDev MoustaphaDev added the - P4: important Violate documented behavior or significantly improves performance (priority) label Oct 28, 2024
@github-actions github-actions bot removed the needs triage Issue needs to be triaged label Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- P4: important Violate documented behavior or significantly improves performance (priority)
Projects
None yet
Development

No branches or pull requests

2 participants