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

fmt(astro): formatter error on attribute using template strings #27484

Open
ryuapp opened this issue Dec 28, 2024 · 0 comments
Open

fmt(astro): formatter error on attribute using template strings #27484

ryuapp opened this issue Dec 28, 2024 · 0 comments
Labels
bug Something isn't working correctly deno fmt Related to the "deno fmt" subcommand or dprint

Comments

@ryuapp
Copy link

ryuapp commented Dec 28, 2024

Version: Deno 2.1.4

PS C:\astro> deno fmt --unstable-component
Error formatting: C:\astro\eg.astro
   Syntax error (expected attribute value) at file:///C:/astro/eg.astro:4:0

Checked 1 file
PS C:\astro> 

eg.astro

---
const color = "red"
---
<p style=`color: ${color};`>Hello</p>

This code works fine with Astro.

@marvinhagemeister marvinhagemeister added deno fmt Related to the "deno fmt" subcommand or dprint bug Something isn't working correctly labels Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly deno fmt Related to the "deno fmt" subcommand or dprint
Projects
None yet
Development

No branches or pull requests

2 participants