-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Node module dependency bug #3974
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
This is weird. I'd expect
@arcanis any ideas? |
Well it's the same issue as #3951 - |
That being said, as @BYK noticed the hoisting should probably still have worked in this particular case since (I still advise you to open an issue on |
Unfortunately it looks as if that project is not maintained anymore. In our project, we don't actually require |
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
The requested package version is being ignored and substituted with a sub-package module in another dependency.
If the current behavior is a bug, please provide the steps to reproduce.
yarn init -y
.yarn add [email protected]
yarn add leaflet-virtual-grid@latest
cd node_modules/leaflet-virtual-grid/node_modules/leaflet
andvim package.json
What is the expected behavior?
When
leaflet-virtual-grid
is installed, itsleaflet
dependency shouldn't be installed, as it's already included previously. This is working correctly in NPM v5. In NPM v5, the node_modules forleaflet-virtual-grid
are not installed and it will use the existingleaflet
dependency.Please mention your node.js, yarn and operating system version.
The text was updated successfully, but these errors were encountered: