-
Notifications
You must be signed in to change notification settings - Fork 3.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
Webpack Compilation Error when upgrading to Cypress 12.17.4
#27599
Comments
We are seeing the same behavior across multiple repositories. |
We have a similar issue when running cypress component tests only on 12.17.4.
For now, we only found downgrading as a solution. |
Hi @nbouvrette. Thank you for opening an issue and I am sorry the update is causing you problems. I wasn't able to get things working with After investigating, it looks like Webpack 5 added a resolve.fullySpecified that defaults to {
test: /\.m?js$/,
resolve: {
fullySpecified: false,
},
} I am currently working on recreating the scenario in which this happens to add a regression test to our repo. Once that is done, I will publish a dev binary for you and others experiencing the same issue to test. Once we confirm it works, we will work on patching cypress and |
@W01fw00d it looks like you might have some issues loading |
Binaries are available if anyone would like to additionally verify the proposed solution 021dce6 |
Thanks @AtofStryker - do you know when a release is planned so that we can use the fix? |
|
Thanks @MikeMcC399 - I didn't know about the pre-release versions. I just tested this version and it looks good! Any idea when the next official release will be available? |
It's great to hear your confirmation! 🚀
I don't have insider information. My best information is the date currently shown in https://github.com/cypress-io/cypress/blob/develop/cli/CHANGELOG.md
however there are no guarantees and planning often changes at short notice. |
This should be released with Cypress |
Released in Cypress 13.0.0. |
Current behavior
After upgrade to Cypress
12.17.4
which uses Webpack 5, I started getting this error:Desired behavior
Based on the changeslog from
12.17.4
, there should not be any impact after upgrading.I tried to fix the issue myself by installing
@cypress/webpack-preprocessor
and@babel/preset-typescript
but got nowhere.I also tried to pin @cypress/webpack-batteries-included-preprocessor to v2.x.x and hooking into the file:preprocessor plugin event.
I had to:
npm install @cypress/webpack-batteries-included-preprocessor@^2.0.0 --save-dev
Unfortunately as soon as I do this I get new errors:
My only solution is to downgrade Cypress to
12.17.3
Test code to reproduce
npm install
npm run test
Cypress Version
12.17.4
Node version
v18.16.0
Operating System
macOS 13.4.1
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: