I m setting up an nx wor…

less than 1 minute read

I’m setting up an nx workspace with (for now) two publisheable libraries, say A and B, A depends on B. I can npm link B to use it in another project, but when I try to npm link A there is an error no matching version found for B. This is because B is listed as a dependency of A in the package.json. Can I instruct nx to list B as a peerdependency instead, or am I taking the wrong approach ?

Updated: