-
Notifications
You must be signed in to change notification settings - Fork 193
5.17.1 breaks NPM workspaces support as part of webpack build #434
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Please create reproducible test repo, what is error? With wich code? |
Ok.. Here is sample repo WPRepro.zip
|
That's expected due - #400, you have
so using My recommendation:
feel free to feedback |
Thanks for the response. Please add this as breaking change to 5.17.1 release notes. |
It is in the changelog
It is under a bugfix because of it is a just a fix, before we have the wrong behaviour |
such comment doesn't trigger me as user of lib to change something, but i got answers. thank you. |
Hi,
Our project stopped to build when we upgraded webpack version to 5.94 due to GHSA-4vvj-4cpr-p986
We have a mono repo with NPM workspaces where we have internal libs and services built using these libs. Libs are installed as dependent packages into services using names taken from lib's package.json "name" parameter. Same with importing files from these libs. For instance: we have lib which has name "@ns/lib1" and some service which has lb1 installed as dependency
this service's source code also imports lib files using "import { someFunction } from "@ns/lib1/moduleX" ...
I believe it is a well known approach ...
After some investigation we found that problem is located in "enhanced-resolved" package, so fix was to add some kind of "pinning" into our root package.json
However it can not be a long term solution, so it would be nice to have this fixed.
Thank you.
The text was updated successfully, but these errors were encountered: