question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When I install @cypress/webpack-dev-server 2.0.0, my Project intall error

See original GitHub issue

Current 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.

https://github.com/cypress-io/cypress/blob/1e42ba3c330456d50545511ac1ff799165f7f1f2/npm/webpack-dev-server/package.json#L23

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:closed
  • Created a year ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
lmiller1990commented, Jul 29, 2022

@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.

1reaction
lmiller1990commented, Jun 24, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found