Checklist for some errors I had in ng-packagr.
-
You need Typescript 2.6 to use submodules otherwise you get
module not found errors
ng-packagr/ng-packagr#677 -
Always use
ng serve --follow-symlinks
when linked locally otherwise you get injection errors -
Never rely on barrel files link directly or at least link directly to a barrel. Otherwise you will receive ERROR in : Unexpected value 'undefined' imported by the module [...] during the AOT building phase
Don't do this:
import { something } 'folder-with-barrel'
Do this instead:
import { something } 'folder-with-barrel/index'