I have the simples example:
ng new workspace-test --create-application=false
cd workspace-test
ng generate library lib-test
ng build lib-test
npm link
ng new app-test
npm link lib-test
Error: Module not found: Error: Can't resolve '../../../workspace-test/dist/lib-test/lib/lib-test.component' in 'C:\dev\app-test\src\app'
import { LibTestModule } from '../../../workspace-test/dest/lib-test'
...
imports: [
LibTestModule ,
I don't have idea what is going on, how to make it work? It basic example.
if you want to use local library in another local project then your library build should be inside project's node_modules folder
solution change the library build destination to the project's node_modules