Support --dev mode with Yarn Modern Plug'n'Play (pnp) #30656
Labels
package manager: yarn
Issues relating to yarn
process: contributing
Related to contributing to the Cypress codebase
What would you like?
Following the instructions in CONTRIBUTING > Getting Started should allow selecting and running an otherwise working Cypress (E2E) project using Yarn Modern pnp without error.
Cypress however fails with the error
and the stack trace shows
where it presumably is trying to look for
cypress
in the non-existentnode_modules
directory, that is not created for Yarn Modern pnp configurations.Why is this needed?
Yarn Modern Plug'n'Play is the default installation strategy for new Yarn Modern installations (in which case
.yarnrc.yml
>nodeLinker
is undefined). SettingnodeLinker
explicitly topnp
also has the same effect.It should be possible to test the WIP Cypress develop branch against a default Yarn Modern E2E project.
The
--project
option is not suitable here because it uses thepackage.json
file (and by implication the package manager) of the root directory.--project
does not allow to use a different package manager.Other
Steps to reproduce error
Ubuntu
24.04.1
LTS, Node.jsv22.11.0
Logs
Related
The text was updated successfully, but these errors were encountered: