[email protected] still (transitively) depends on [email protected]

Created on 2 Jan 2020  路  9Comments  路  Source: webpack/webpack-cli

Describe the bug

Installing [email protected] still adds the latest webpack @4.x.x to the node_modules folder, even though it directly depends on webpack@^5.0.0-beta.3.

The dependency comes to play via webpack-cli -> @webpack-cli/init -> @webpack-cli/generators [email protected]

To Reproduce
Steps to reproduce the behavior:

  1. Go to a new folder
  2. npm init
  3. accept defaults
  4. npm install [email protected] --save-dev
  5. npm install [email protected] --save-dev

Expected behavior
I would expect it to only need the already-installed 5.0.0-beta.11.

Additional context
I'm trying to avoid an issue with [email protected], which is an optional transitive dependency of webpack@4 (webpack -> watchpack -> chokidar -> fsevents). I'm willing to move to the beta of webpack 5 for this particular project, but I'm running into this issue with webpack-cli. With that version of fsevents being dropped into node_modules, I can't ever run npm ci, even though we don't actually use anything that would be impacted.

Good First Contribution Help Wanted

All 9 comments

I think #1148 would solve this issue too @ematipico

I think too

Thanks folks. Just so I understand - should I just wait for that PR to be merged (it looks like maybe its blocked by the build failures on next at the moment?) or should I try to make another PR that addresses it now?

@tlmii the PR has been merged. This should be available in next release.

@rishabh3112 Is there a target date for a beta 2? Saw the roadmap but couldn't find a schedule.

/cc @ematipico

I might be able to ship a new beta this week. Maybe.

@tlmii new version of beta is released, you may check now.

This looks good. Thanks folks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

evenstensberg picture evenstensberg  路  5Comments

sumukhah picture sumukhah  路  3Comments

fokusferit picture fokusferit  路  5Comments

RobotnickIsrael picture RobotnickIsrael  路  5Comments

jbottigliero picture jbottigliero  路  5Comments