-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Cypress vite failed to load config esbuild problem #20768
Comments
Update: it seems that this may be an esbuild mac M1 problem
Is there a specific version of eslint that is getting bundled into the cypress dev server perhaps? Reading from other people's problems with M1 and esbuild it seem that it comes from sharing node_modules which is not the case here at all |
Resolved: I had installed node directly from the node website and there seems to be some incompatibility on the esbuild versions for M1 macs because of it. The solution is to remove that node version, and use nvm to install it instead. |
I also had this problem and when I installed node from |
I installed esbuild |
thanks this work |
this is work for me, thank you @lumacerqueira |
Current behavior
Cypress + vite/vue is outputting this error message (on M1 macs)
Output of debug right before crash/attempt to read config:
Desired behavior
Cypress should launch and vite dev server should get fired
Test code to reproduce
Clone: https://github.com/lmiller1990/vue-3-cypress-vite
Replace package.json with:
Run
yarn cypress open-ct
Cypress Version
9.5.2
Other
Seems related to:
vitejs/vite#917
evanw/esbuild#1646
https://esbuild.github.io/getting-started/#simultaneous-platforms
However I'm not sure how this would affect cypress. Unless cypress internally is somehow copying the node modules folder or something similar. This doesnt seem to affect earlier versions, when the sfc compiler was being used. Maybe related? I can't seem to figure out the cause
The text was updated successfully, but these errors were encountered: