Rayrun
← Back to Discord Forum

not able to install playwright with legacy Vue project

getting the following error. Also, I dont want to upgrade other packages because it might break something else in the large legacy project. what are my options?

npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: @vue/cli-plugin-unit-jest@5.0.8
npm ERR! Found: @vue/vue3-jest@29.2.5
npm ERR! node_modules/@vue/vue3-jest
npm ERR!   dev @vue/vue3-jest@"29" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peerOptional @vue/vue3-jest@"^27.0.0-alpha.3" from @vue/cli-plugin-unit-jest@5.0.8
npm ERR! node_modules/@vue/cli-plugin-unit-jest
npm ERR!   dev @vue/cli-plugin-unit-jest@"~5.0.8" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: @vue/vue3-jest@27.0.0
npm ERR! node_modules/@vue/vue3-jest
npm ERR!   peerOptional @vue/vue3-jest@"^27.0.0-alpha.3" from @vue/cli-plugin-unit-jest@5.0.8
npm ERR!   node_modules/@vue/cli-plugin-unit-jest
npm ERR!     dev @vue/cli-plugin-unit-jest@"~5.0.8" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.```

This thread is trying to answer question "How can I install playwright in a legacy Vue project without upgrading other packages and encountering an ERESOLVE error?"

2 replies

Use another project only for playwright or use older playwright version

Solved. I was installing using npm (old habit) for a project based on yarn. LOL.

Related Discord Threads

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email luc@ray.run.