-
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 does not detect required dependencies during launch with Yarn 3 in PnP mode #30017
Comments
PS Sorry for my incorrect post linking this issue to Component Testing, which I deleted after posting, since it was irrelevant. |
Thanks for the help @MikeMcC399! I did some digging and |
Current behavior
[Similar issue to what was mentioned in a discussion thread (#27263), though it never got any responses]
I recently started encountering a missing dependency error when launching Cypress with
Yarn 3.2.3
in PnP mode (see debug logs).I tried reverting to Cypress 12.3.0, but I get the same error except for
lodash
instead of@opentelementry\resources
.I discovered that temporarily setting
nodeLinker: node-modules
on my.yarnrc.yml
file allows Cypress to launch successfully, though it isn't very practical for development purposes given our entire site uses PnP. Is there anything I can do to get Cypress working in PnP mode?Desired behavior
Application should launch without needing to use node_modules linker
Test code to reproduce
Cypress Version
13.13.2
Node version
v16.20.2 (also tested with Node v18.x)
Operating System
Win11 22631.3880
Debug Logs
Other
No response
The text was updated successfully, but these errors were encountered: