-
Notifications
You must be signed in to change notification settings - Fork 186
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
exports
and node_modules
inside package resolving broken
#304
Comments
@achingbrain we have a bug, somewhat critical exports example:
Reproducible:
|
Let's wait @sokra answer, fix is easy, we should skip resolving in |
exports
and node_modules
inside package resolving broken
I think this problem also exists for |
@achingbrain i am afraid v4 accept only security fixes, what is the blocker to update? |
@alexander-akait I think you closed my issue prematurely, though granted it was a bit inaccurate.
I've done a bit more digging - the key difference between the
node_modules
folders that npm and yarn generate is that yarn createsnode_module
folders in each dep where their deps have cli tools with a nested.bin
folder and npm does not.So from the above,
ipfs-unixfs-importer
depends onrabin-wasm
which has a cli tool.With npm I get:
With yarn I get:
If I remove (or rename) the nested
my-project/node_modules/ipfs-unixfs-importer/node_modules
folder everything works, if I leave it, webpack does not resolve therabin-wasm
dependency. I guess it doesn't walk back up the tree to find the nextnode_modules
folder if the first one doesn't have the dep it's looking for like node does?You can see this yourself with the repro repo.
Originally posted by @achingbrain in webpack/webpack#14268 (comment)
The text was updated successfully, but these errors were encountered: