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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 BUG: Javascript Template literals (backticks) throws an error #437

Closed
1 task
zraly opened this issue May 30, 2022 · 2 comments 路 Fixed by #439
Closed
1 task

馃悰 BUG: Javascript Template literals (backticks) throws an error #437

zraly opened this issue May 30, 2022 · 2 comments 路 Fixed by #439
Assignees
Labels
- P5: urgent Fix build-breaking bugs affecting most users, should be released ASAP (priority)

Comments

@zraly
Copy link

zraly commented May 30, 2022

What version of astro are you using?

1.0.0-beta.36

Are you using an SSR adapter? If so, which one?

None

What package manager are you using?

npm

What operating system are you using?

Mac, Stackblitz

Describe the Bug

I forked Astro's Alpine JS example from https://astro.new/, and only added this into index.astro (show be a valid Alpine expression):

<a :href="`https://smth.com`">Link</a>

This should generate a link to https://smth.com, but throws an error: ERROR: Expected ";" but found "https".

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-mzh1vw

Participation

  • I am willing to submit a pull request for this issue.
@inwardmovement
Copy link

inwardmovement commented May 30, 2022

image

see also withastro/prettier-plugin-astro#204

@natemoo-re
Copy link
Member

Thanks! I suspect this is a bug in our compiler, will try to get this looked at ASAP.

@natemoo-re natemoo-re self-assigned this May 31, 2022
@natemoo-re natemoo-re added - P5: urgent Fix build-breaking bugs affecting most users, should be released ASAP (priority) s1-small labels May 31, 2022
@natemoo-re natemoo-re self-assigned this Jun 17, 2022
@FredKSchott FredKSchott transferred this issue from withastro/astro Jun 20, 2022
@natemoo-re natemoo-re assigned tony-sull and unassigned natemoo-re Jun 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- P5: urgent Fix build-breaking bugs affecting most users, should be released ASAP (priority)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants