-
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
⚠️ yarn berry with cypress 10.x doesn't work and complains about webpack #22699
Comments
Hm, yeah, it does seem like we're not handling something correctly here with yarn pnp. There's a variety of issues around yarn 2 + cypress, but I think this is the first one pointing out a problem with yarn 3. Going to send this to the Component Testing team and see if any of them have thoughts on the matter. |
@BlueWinds any update on this? or where the bug might be so I can take a look? |
eg:
"dependenciesMeta": {
"webpack-dev-server@4.11.0": {
"unplugged": true
}
} |
Current behavior
Cypress doesn't work with
yarn berry
andpnp
(plug and play).Desired behavior
Cypress with pnp works
Test code to reproduce
react-next12-ts
yarn.lock
by runningtouch yarn.lock
package-lock.json
yarn set version berry
yarn install
yarn cypress run-ct
Use
pnp
instead ofnode_modules
touch .yarnrc.yml
and add in the filenodeLinker: pnp
(before it wasnodeLinker: node-modules
)yarn install
node_modules
folderyarn cypress run-ct
but the real problem seems to be a webpack thing
cypress.config.ts
tocypress.config.js
and change the code to:yarn cypress run-ct
Full output:
Webpack complain
Cypress Version
10.0.3
Other
I tested with 10.0.2 and 10.0.1
The text was updated successfully, but these errors were encountered: