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:
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.
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!