-
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 dependencies with Yarn 3 PNP #25733
Comments
This may be a duplicate of #22747 but I am not sure, as I do not get any errors when using Cypress with Yarn 3 PNP or ES Modules - only this warning box before selecting which browser to open tests with on Vue and React apps. Though both issues would likely be fixed with the same module resolution fix. |
@wopian This is not a duplicate of #22747 even though they both involve yarn 3. The similarity is that both involve the way the Cypress app relies on looking into the Are you having any issues running your tests? Or are you simply reporting that warning message in your screenshot? |
@warrensplayer reporting the warning message. Tests run without issues |
Hi - just wondering if cypress 12 is compatible with yarn 3? I noticed that the cypress factory docker images don't support yarn 3.... |
Cypress 12 works fine with Yarn 3 for me after using both for >1 month - it just doesn't detect the package versions of frameworks you target in cypress config when using PnP package linking |
Cypress 12 works fine with Yarn 3, except the component testing dependency detection screen isn't working as expected. That's what this ticket is about. It's misleading and confusing, we will fix it by end of March. I made a new issue #25733 which I'm using to track -- I didn't realize this one already existed when I made that one. Closing this one is favor of the newer one. |
@lmiller1990 you may have linked back to this issue instead of the new issue created 😅 I assume you mean #25960? |
Yep, sorry... we will work on #25960 in the next 2 weeks. |
@lmiller1990 thanks for resolving this issue! do you have a timeline on when this is expected to be available in the production build? |
5 months ago :) |
|
Current behavior
Shows a warning that
vite@4
,react@18
andreact-dom@18
(orvue@3
in Vue repositories) dependencies are not found when running component tests interactively with Yarn 3 PNPDesired behavior
No warnings when
vite@4
,react@18
andreact-dom@18
are all installed and listed as dependencies in package.jsonTest code to reproduce
Barebones React 18 and Vite 4 reproduction with Yarn 3: https://github.com/wopian/cypress-test-tiny
CircleCI has been changed to use Yarn commands.
Cypress Version
12.5.0
Node version
19.6.0
Operating System
macOS 13.0
Debug Logs
No response
Other
Yarn 3 with Plug 'n' Play.
.yarnrc.yml
The text was updated successfully, but these errors were encountered: