Skip to content

Instantly share code, notes, and snippets.

@georgiee
Last active March 29, 2018 11:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save georgiee/1bff77c785c473ab159fc901a21ee037 to your computer and use it in GitHub Desktop.
Save georgiee/1bff77c785c473ab159fc901a21ee037 to your computer and use it in GitHub Desktop.
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 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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment