I keep reading that you can use modules, components and interfaces within an Angular library. But I'm consistently getting an outside of the configured 'rootDir' error.
projects
- app
- lib
- common-entry-pt
- src
- dumb.component-one.ts
- dumb.component-two.ts
- dumb.module.ts
- ng-package.json
- public-api.ts
- entry-pt-one
- src
- entry-pt-one.component.ts
- entry-pt-one.module.ts <— importing dumb.module.ts gives “file outside of the configured ‘rootDir'"
- entry-pt-one.service.ts
- ng-package.json
- public-api.ts
The code differs depending on import path or attempt.
error NG3004: Unable to import class ToolsModule.
dumb.module.ts is outside of the configured 'rootDir'.
Does anyone have an example of sharing deps within the library?