-
Notifications
You must be signed in to change notification settings - Fork 417
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
Fix external modules version for transitive dependencies #541
Fix external modules version for transitive dependencies #541
Conversation
2e22f56
to
6c6d299
Compare
Sadly, this only solves problem of the missing versions in the generated package.json and eliminates "WARNING: Could not determine version of module XXX" but does not fully solve the problem of fully supporting yarn + multiple modules. The next failure I am getting is:
The reason for the frozen lockfile problem is the following. The generated
And
Now if I change |
@HyperBrain What do you think? Is it worth merging a partial fix? Do you have any ideas for a proper solution? I'm kind of stuck here and falling back to ugly workarounds. |
I investigated a little further where the
Whereas not limiting depth gives us the original version further deep at the tree:
Could the solution be removing the depth limitation? What was the original purpose of |
any chance to move this along, I'm running into the same issue. @salomvary what is your current workaround? |
@MrLoh I'm using a forked version of |
As far as I can understand, it might be to avoid having to retrieve a huge object because of all the subdeps. |
Using this PR plus bundling the Yarn Workspaces packages has resolved the both the So for instance, if all your monorepo packages are scoped with { // webpack.config.js
externals: [nodeExternals({ allowlist: [/^@acme/] })],
} Any chance to move this PR along?... |
6c6d299
to
4fa7f2f
Compare
This pull request is the same change as #507 plus tests added. I also published a repo with a minimal reproduction case: https://github.com/salomvary/serverless-webpack-bug/tree/master/comp-a (run
yarn && node_modules/.bin/serverless package
).What did you implement:
Same as in #507.
How did you implement it:
Same as in #507.
How can we verify it:
Same as in #507.
Todos:
Is this ready for review?: YES
Is it a breaking change?: NO