We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Astro v4.3.5 Node v21.6.1 System Windows (x64) Package Manager npm Output static Adapter @astrojs/vercel Integrations @astrojs/svelte @astrojs/tailwind
No response
Using nested template literals throws an error of expected ")" on a line not present in the file.
Syntax highlighting doesn't show any errors.
<a href={social.link} class=`${type === 'CARD' && `${social.style} block rounded-lg px-4 py-3 w-fit flex gap-2 items-center`} ${styles}` > <img src={social.icon.src} alt={social.name} class="aspect-square h-5" /> {type === "CARD" && <div>{social.name}</div>} </a>
The class attr seems to trigger the error. Err on line 91 but there are only 73 in my component (see Stackblitz).
Wrapping the class with { } fixes the problem.
Work with nested template literals without wrapping between { } as non-nested template literals work fine without brackets.
https://stackblitz.com/edit/withastro-astro-1hn7ch?file=src%2Fcomponents%2Fsocial.astro
The text was updated successfully, but these errors were encountered:
Seems related to #934, though that one was in the frontmatter.
Sorry, something went wrong.
No branches or pull requests
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
Using nested template literals throws an error of expected ")" on a line not present in the file.
Syntax highlighting doesn't show any errors.
The class attr seems to trigger the error.
Err on line 91 but there are only 73 in my component (see Stackblitz).
Wrapping the class with { } fixes the problem.
What's the expected result?
Work with nested template literals without wrapping between { } as non-nested template literals work fine without brackets.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/withastro-astro-1hn7ch?file=src%2Fcomponents%2Fsocial.astro
Participation
The text was updated successfully, but these errors were encountered: