I'm trying to use npm link in my project App, I also have two libraries liba and libb.
- my App uses both liba and libb
- and my libb uses liba
Ihese are the commands I followed:
npm link
inside libanpm link
inside libbnpm link liba
inside libbnpm link liba && npm link libb
inside the App.
but now when I run npm start
in my App I get error in the import statement of liba saying that "Failed to install liba"
Also there is I don't see a reference to liba in node_modules of App, but I see reference of libb inside node_modules of App, and inside that liba.
In my App I am importing from liba as import { XYZ } from liba
.
I get that error is coming because I don't have liba directly in the node_modules but inside node_modules/libb/liba.