DEV Community

gitcloned
gitcloned

Posted on

How to import a library from another library

Hi,

I have created a nextjs app using nx.

In the same project, I create 2 libraries:

  • utils-logger
  • utils-logger-transports

when I try to include utils-logger-transports in utils-logger I get cannot find "@nx-app/utils-logger-transports" module

the import paths are properly setup in tsconfig.base.json

The basic question is how can I create multiple libraries and import a library within others.

Thanks a lot for your help!

Top comments (0)