-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Expected ")" but found "22" (when running any new project) #5518
Comments
This doesn't provide any information anyone can help you with, can you show your index.astro please, or is it the default? |
This happened because of a |
I encountered the same issue on macOS with an Astro project created in a directory containing a single quote in its name, e.g. After some investigations, this issue seems to be resolved in The issue was related to the output code by the compiler being similar to: const $$Astro = $$createAstro(
"/Users/hideo/Temp/astro/test'23/src/pages/index.astro",
'',
'file:///Users/hideo/Temp/astro/test'23/'
// ^ extra unescaped single quote
); The last The Astro version const $$Astro = $$createAstro('https://astro.build'); This prevents the issue from happening. |
@HiDeoo Thank you for investigating this! Even though it wasn't intended, it is wonderful that this got fixed. I'll close this issue now, thank you everyone for reporting, helping and investigating this. |
What version of
astro
are you using?latest
Are you using an SSR adapter? If so, which one?
no
What package manager are you using?
npm
What operating system are you using?
windows 10
Describe the Bug
Whenever install just a simple new project using NPM or PNPM, I got this when I run
pnpm/npm run dev
Link to Minimal Reproducible Example
n/a
Participation
The text was updated successfully, but these errors were encountered: