The error occurs when I use the library in another library. Library import is working fine in the app but not working within libraries. And not able to generate the build of a library. All libraries are publishable.
Error:

Nrwl.v13 Files Structure within lib folder:

I had this issue in one of our monorepo and it was caused by the fact that one of our library's name wasn't valid. We had something like @organisation/test-utils/e2e which we ended up renaming to @organisation/test-utils-e2e (take note of the / usage).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With