When I install @cypress/webpack-dev-server 2.0.0, my Project intall error
See original GitHub issueCurrent behavior
When I install @cypress/webpack-dev-server 2.0.0
in my mono repo produce by Lerna, sub packages install html-webpack-plugin
throw some Warn.
- yarn: 1.22.18
- lerna: 4.0.0
install warn:
warning Pattern ["html-webpack-plugin@^5.5.0"] is trying to unpack in the same destination "/Users/taptap/Library/Caches/Yarn/v6/npm-html-webpack-plugin-5-5.5.0-c3911936f57681c1f9f4d8b68c158cd9dfe52f50-integrity/node_modules/html-webpack-plugin-5" as pattern ["html-webpack-plugin-5@npm:html-webpack-plugin@^5"]. This could result in non-deterministic behavior, skipping.
and then, I build my package by yarn build
. It throw some error:
Error: Cannot find module 'html-webpack-plugin'
So, i guess the html-webpack-plugin
have the same destination html-webpack-plugin-5
.
I think the @cypress/webpack-dev-server
should not rename packages by this way. It will effect the host project.
Desired behavior
I think the @cypress/webpack-dev-server
should not rename packages by this way. It will effect the host project.
Test code to reproduce
above
Cypress Version
10.1.0
Other
No response
Issue Analytics
- State:
- Created a year ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
@cypress/webpack-dev-server - npm package | Snyk
This ensures that the user has installed the current modules, and throws an error if the user does not have the library installed....
Read more >@cypress/webpack-dev-server - npm
Start using @cypress/webpack-dev-server in your project by running `npm i @cypress/webpack-dev-server`. There are 25 other projects in the ...
Read more >Facing issues with npm i and installing npm packages
if there is any issue in running npm install , try to run yarn install command to find which package has problem or...
Read more >invalid options object. dev server has been initialized - You.com
When I run the project, I receive the error,. $ npm start > redux-starter@1.0.0 start > webpack-dev-server --config ./webpack.config.js [webpack-cli] ...
Read more >cypress/webpack-dev-server - npm.io
Note: This package is bundled with the Cypress binary and should not need to be installed separately. See the Component Framework Configuration Docs...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@wingy3181 we are working on eliminating the
html-webpack-plugin
entirely - you can follow some progress in this draft PR. Once that is done, this should be a non issue.For now, see this issue - it has the same problem and a few fixes/work-arounds.
Thanks for the reproduction. Just to clarify, everything is okay now?
I’ll still look into it, but if my suggestion has unblocked you, that’s great to hear.