generateRandomId and zone.ts should be shared between the libraries. A library created by @nx/angular:library doesn't work between libraries. It throws an error that the source code is not in the rootDir, which makes sense but is weird because the official documentation is exactly the same. The only issue is that I try to share code between lib-a and lib-b, while Nx provides an example for lib-a and app-b.
generateRandomId
andzone.ts
should be shared between the libraries. A library created by@nx/angular:library
doesn't work between libraries. It throws an error that the source code is not in therootDir
, which makes sense but is weird because the official documentation is exactly the same. The only issue is that I try to share code between lib-a and lib-b, while Nx provides an example for lib-a and app-b.