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 #92

Open
MohammadSu1 opened this issue Jan 7, 2025 · 1 comment
Open

Comments

@MohammadSu1
Copy link

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.
Originally reported in denoland/deno#27484

@g-plane
Copy link
Owner

g-plane commented Jan 7, 2025

Duplicate of #82

@g-plane g-plane marked this as a duplicate of #82 Jan 7, 2025
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

No branches or pull requests

2 participants