Fullfilling peerDeps with implicit dependency no longer working in npm6?


(Patrik Meijer) #1

I noticed with the latest nodejs carbon version (8.12.0) that uses npm6 rather than npm5 that my chain of dependencies no longer works as before and results in cannot find module xxx.
This is my setup:
In package app which is the actual app where I get the import error:

{
  "dependencies": {"lib": "latest", "plugin": "latest"}
}

In package lib

{
  "dependencies": {"base-lib": "latest"}
}

In package plugin

{
  "peerDependencies": {"base-lib": "latest"}
}

When I run my app the module plugin complains about not finding base-lib.
Is this a bug? Or it happily worked out previously to npm6 and peerDependencies does not resolve โ€œimplicitโ€ dependencies?

Thanks


(system) #2

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.