Closed shlomisas closed 4 years ago
Yes, unfortunately for now this scenario is not supported. The problem is that modules are installed just by name, so I can have just one version of it. It is a know limitation and something that I want to change, I have also started working on it some time ago but never finished.
This is already an issue and a draft branch, see #3
I'm closing this issue just because it is a duplicate of #3, if you think it is different or if you have something to add feel free to reopen it.
Hi,
I have this scenario: a module/plugin with two dependencies that uses a different (major) versions are override each other and potentially throw an error if major functionality changed.
In my case is
jszip
(dep ofselenium-webdriver
) andwinston-transport
(that is a dep ofwinston
) andwinston
itself (see belownpm ls
output)When Im trying to install my plugin everything is good, but when I tried to
require
usinglive-plugin-manager
I'm getting the following error:Cannot find ./writable in plugin readable-stream
I started to debug
live-plugin-manager
and looks like it requiresreadable-stream
3.6.0 even for modules that has a different (major) version of this package and it's clear why it's broken now, in 3.6.0 they removed thewritable.js
file from the root of the module while others still using it.The output of
npm ls readable-stream
is this:Here is a POC of my problem: https://github.com/shlomisas/live-plugin-manager-bug-scenario
It sounds quite basic to support multiple versions of the same package, so I wonder: do I do something wrong here?
TU,
Shlomi.