-
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 Modern Plug'n'Play (pnp) E2E fails with "Error: Cannot find module 'pnpapi'" #27562
Comments
Hi @MikeMcC399. I think I know what may be wrong. I am going to work on getting a binary ready for us to test with what I think might fix the issue |
Thanks for your progress note! |
OK I think I have this fixed. Binary works with local install. I have a fixed proposed in #27583 |
I would have like to have tested this whilst it was still a pending PR, however I couldn't work out how to do that for Yarn! Now it's been merged and GitHub offers a beta I successfully tested on Windows 11. 👍🏻 yarn add cypress@https://cdn.cypress.io/beta/npm/12.17.5/win32-x64/develop-5109a74e21036dc5936369eb0a9600954ff8f377/cypress.tgz
|
@MikeMcC399 The fix also works on Ubuntu |
Released in Cypress 13.0.0. |
Current behavior
Attempting to run an E2E project based on a Yarn Modern Plug'n'Play (pnp) configuration using Cypress
12.17.4
fails with "Error: Cannot find module 'pnpapi'".This is a regression from Cypress
12.17.3
.Desired behavior
A Cypress project based on a Yarn Modern Plug'n'Play (pnp) configuration, which previously ran successfully on Cypress
12.17.3
, should continue to run successfully on later12.x
versions.Test code to reproduce
See https://github.com/MikeMcC399/github-action/tree/test/yarn-pnp-update/examples/yarn-modern-pnp which is updated to use Cypress
12.17.4
.To run locally execute the following:
Cypress Version
12.17.4
Node version
18.17.1
Operating System
Ubuntu 22.04 (also reproducible on Windows 11)
Debug Logs
DEBUG=cypress:*
15954766588Other
The text was updated successfully, but these errors were encountered: