โ† flaviocopes.com

How to fix the "Parse failure: Unterminated string constant" error

Published May 09 2022

Psssst! The 2023 WEB DEVELOPMENT BOOTCAMP is starting on FEBRUARY 01, 2023! SIGNUPS ARE NOW OPEN to this 10-weeks cohort course. Learn the fundamentals, HTML, CSS, JS, Tailwind, React, Next.js and much more! โœจ

I ran into this error with a student of mine, running Astro on Windows (could not replicate on macOS), after running npm run dev.

After much ๐Ÿค” we solved by renaming the parent folder, which apparently had a strange character, perhaps non-ASCII.

If you run into this problem, try renaming the folder you are running (or perhaps a parent folder in the path) to just ASCII text, like โ€œtestโ€



I write books for developers ๐Ÿ‘‡๐Ÿผ

© 2023 Flavio Copes Flavio Copes made in Italy ๐Ÿ‡ฎ๐Ÿ‡น using Notion to Site Notion to Site