-
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
Webpack Compilation Error when upgrading to Cypress 13.1.0 #27755
Comments
hi @tonilaukka. Thank you for opening an issue. are you able to provide a reproduction or see where the does |
Can't share our production code and could not reproduce the error on the cypress-test-tiny template
@AtofStryker this worked as a workaround but what's causing the issue? Removed cypress totally and reinstalled it again but it didn't solve the issue. We use pnpm if that matters. |
@tonilaukka I can't say for certain since we don't have a reproduction, but my best guess is there is an issue with your dependency tree resolution (the way packages are installed in |
We ave started to get the same error when running cyress via docker. Heres our new Dockerfile - I've added the process to the end to get things running again
|
@craighawkes it should be in the |
Same thing is happening on my end - I will try to make a minimal reproduction tonight if I have the chance - however, for now just sticking to v12 works.
Can confirm that installing |
Saw this when upgrading from
Installing the |
Same issue here when upgrading from "12.17.2" to "v13.3.0"... but I FIXED it just now. The error:
Note: In my tsconfig.json, I am using typescript project references feature. The <another sensitive path> above was from the referenced project, which did not have "process" installed. I installed it in the referenced typescript project, and then it worked. |
We're encountering the same problem accessing code in a separate project directory that doesn't have Cypress. This worked fine in v12.17.1. |
Same issue here unfortunately. Installing "process" in all my referenced project as well as custom package installed through npm didn't fix it. Try with all versions of Cypress from 13.0.0 to 13.3.3. (I will try to isolate the problem further) |
@sergiomap @FrancisBourgault I would love to help if either of you are able to share a reproduction. My guess is there is something wonky with the dependency tree. |
I had to install |
I had the same issue after switching from version 12 to 13. For me, it was resolved by changing the package to the older version. I had the issue on |
Turns out I needed to install "process" in the dev dependencies of the package json that's at the root of my test projects (some dependencies are shared between Cypress and another tech we are using for a different kind of testing). So, installing "process" in a folder above the cypress project folder worked, but not installing "process" inside the cypress project folder as well as any project used by cypress. |
It's a hack, but I've had some success with:
|
I'm having the same issue after upgrading Yarn from 1.x to 4.x with "pnpm" install mode. We have a monorepo, but
The error is confusing as
The package is installed, but still can't be found by Cypress webpack :/
|
Hi @szymonnowak-st. We have actually had a bug in Cypress' webpack preprocessor with yarn 4 where dependencies are not resolved correctly. The good news is we fixed it in Cypress 13.13.2. If you are unable to upgrade, the fix has also been ported to the the preprocessor cypress uses to compile your files which can be used as a stand alone package, which is called @cypress/webpack-batteries-included-preprocessor |
@AtofStryker Thanks! It fixed the issue for us. The release notes mention Yarn PnP, and we're using Yarn PNPM, so I though it won't help. |
@szymonnowak-st my guess is that including the fixes from enhanced-resolve inside the cypress binary likely fixed a lot of other dependency discovery issues, which is a great thing! We might want to update the change entry to be a bit more generic on our end now that we know the impact is positive across other package managers. |
* fixing css so shit doesn't fidget during interaction * fixing cypress via upgrae to 13.13.2, see cypress-io/cypress#27755 (comment)
This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided. |
Current behavior
Updated from Cypress 12.6.0 to 13.1.0 and started to get this error:
Desired behavior
There should not be any impact after upgrading.
Test code to reproduce
Cypress Version
13.1.0
Node version
18.16.1
Operating System
macOS 13.4.1
Debug Logs
No response
Other
Looks similar to this issue: #27599
The text was updated successfully, but these errors were encountered: