-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[ERROR] Expected identifier but found "import" #14790
Comments
Thought I was the only one! I tried with pnpm & bun and couldn't understand what was going on until I realized creating a new project doesn't generate the |
It's the second time this week that I've been blocked from working because Svelte doesn't work anymore. Who is responsible for QA? They should reduce the frequency of updates and focus more on stability. |
This just happed to me too, Glad I am not the only one. |
What an inappropriate comment. I think an apology on your part would be nice. |
This is due to some breaking changes introduced in the latest vite package |
@yaman-cruise take some time and read back what you put in your comment You want to speak to the manager do you? If you're unhappy you can always have your money back |
also |
You guys are right. Let's focus more on a workaround until it's fixed. But I see there is already one. |
caused by a change in esbuild 0.24.1, evanw/esbuild#4010 workaround is to pin it to 0.24.0 via package.json resolutions or pnpm.overrides |
also see sveltejs/cli#366 there is nothing to be done on the svelte side, just wait for it to be fixed and use 0.24.0 until then |
For now running the following works for me:
|
Thanks @shinokada, It worked for me. |
Looks like [email protected] fixed this. |
vite 6.0.5 pinned esbuild to 0.24.0, we are going to unpin esbuild after the fix has been released. this step has been taken to reduce the number of affected users and make it easier than adding a local override. i'll close this issue as regular update flow get people out of it, still recommend interested parties to follow esbuild and vite release notes over the next hours/days. |
Describe the bug
After a fresh installation, running
pnpm dev
,pnpm test:e2e
andpnpm build
returns the following errors:(This happens without running
pnpm update
as well.)Reproduction
Logs
No response
System Info
Severity
blocking an upgrade
The text was updated successfully, but these errors were encountered: