I cannot use component inside the same library in Angular

430 Views Asked by At

I'm using angular 13 and I have a test library which contains 2 components: lib1 and lib2.

I want to use lib2 compoment in lib1 component by doing an import of its module in lib1.module

Later on, this library is used in the 'showcase-test' app to check that the library is correctly working.

Error found: The Ivy compiler is always prompting 'Cannot find module '@lib/lib2' or its corresponding declarations'

I attach here the test workspace that I've created to reproduce the error.

https://github.com/ricardmc/workspace-test

I think it's something from configuration and relative paths but I cannot find it.

Many thanks in advance

0

There are 0 best solutions below