-
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
vite-dev-server specifies invalid esbuild option incremental
for Vite 4.2.0
#26138
Comments
I'm still seeing this as referenced by my comment in the PR, even after upgrading all my dependencies to the latest across the board. |
@reintroducing I'll respond here too just to document, this fix has not yet been released. It will go out with the next Cypress release |
Any idea when this will be released (in which Cypress version)? |
This error is also thrown with Vite version |
@adamdehaven according to the release cycle of Cypress (as referenced in the PR), it looks like it'll go out in roughly one week. |
Yes, roughly one week. Maybe Vite 4.1.0 is better until then. Always impressed people are able to update to quickly, something in Vite 4.2 breaks our own internal workflow, no idea what... dependency hell. Have a personal project using native ESM, no bundler, no anything - DX is meh but having only a handful of deps that hardly change is 💯 |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Vite updated esbuild to v0.17.0 which removes the
incremental
build option that we set invite-dev-server
cypress/npm/vite-dev-server/src/resolveConfig.ts
Line 87 in a63a474
The result is that when you try to run a Cypress test with a project that is using Vite 4.2.0, you get this error message in the logs:
Along with this error in the command log
Fix component testing with Vite by removing the now invalid
incremental
esbuild option and figure out how to maintain the same build behavior.The text was updated successfully, but these errors were encountered: