Cannot run cypress with a fresh yarn pnp install #27263
Unanswered
saudpunjwani101
asked this question in
Questions and Help
Replies: 2 comments
-
Try loose mode. e.g. By setting Alternatively try setting |
Beta Was this translation helpful? Give feedback.
0 replies
-
did this fix your issue? I am getting the same error. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to setup Cypress with jest adapter and testing-library/cypress but I'm encountering an issue as I'm using Yarn Pnp. Here I tried to do it in a fresh project.
mkdir test-cypress && cd test-cypress
yarn init
yarn add react react-dom vite
yarn add cypress --dev
yarn run cypress open
And I get an error,
My package.json file,
{ "name": "new-cypress", "packageManager": "yarn@3.3.0", "dependencies": { "react": "^18.2.0", "react-dom": "^18.2.0", "vite": "^4.4.2" }, "devDependencies": { "cypress": "12.17.1" } }
If I do it via npm, it works fine. The problem is somehow related to Yarn pnp. Note that I've tried downgrading cypress to v10 and v9. The same problem occurs, just that in v10 I get this same error but for a different library like "lodash" and in v9 I get this error for library "graceful"
Beta Was this translation helpful? Give feedback.
All reactions