Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ng-packagr

Checklist for some errors I had in ng-packagr.

  • You need Typescript 2.6 to use submodules otherwise you get module not found errors https://github.com/dherges/ng-packagr/issues/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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.