Closed
Description
Versions
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ ? \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI: 6.0.0
Node: 8.11.1
OS: win32 x64
Angular:
...
Package Version
------------------------------------------------------
@angular-devkit/architect 0.6.0
@angular-devkit/core 0.6.0
@angular-devkit/schematics 0.6.0
@schematics/angular 0.6.0
@schematics/update 0.6.0
rxjs 6.1.0
typescript 2.7.2
Repro steps
- create a new angular 6 workspace with an application
- add two libraries named library1, library2
- refer library1 in library2 package.
- compile library1 using ng build --project=library1
- compile library2 using ng build --project=library2
Observed behavior
* getting exception projects/library2/src/lib/library2.module.ts(3,36): error TS2307: Cannot find module 'library1'.
Desired behavior
Mention any other details that might be useful (optional)
- setting the output of library1 to node_modules doesn't work as ng_packagr is not generating the public_api.ts file if the dest path is node_modules.
- even adding paths to tsconfig.lib.json doesn't get reflected, neither does the paths in the root tsconfig.json
Metadata
Metadata
Assignees
Labels
No labels