question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

exports not found in library for angular-cli AOT

See original GitHub issue

Hi there! Looking for some help.

When combining a library with @angular/cli@1.0.0 and AOT, I get an error saying that exports from my Library are not being found.

I run the command:

ng serve -aot

And get a response to:

** NG Live Development Server is running on http://localhost:4200 **
Hash: 1d6060529867a24e1764
Time: 33825ms
chunk    {0} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 233 kB {4} [initial] [rendered]
chunk    {1} main.bundle.js, main.bundle.js.map (main) 833 kB {3} [initial] [rendered]
chunk    {2} styles.bundle.js, styles.bundle.js.map (styles) 11.7 kB {4} [initial] [rendered]
chunk    {3} vendor.bundle.js, vendor.bundle.js.map (vendor) 4.86 MB [initial] [rendered]
chunk    {4} inline.bundle.js, inline.bundle.js.map (inline) 0 bytes [entry] [rendered]

WARNING in ./src/$$_gendir/app/app.module.ngfactory.ts
84:22-28 "export 'ɵb' (imported as 'i23') was not found in '@svrf/web'

[... additional similar WARNINGs...]

webpack: Compiled with warnings.

PS great generator! Thanks a ton for this!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
tonivj5commented, Jun 15, 2017

You MUST export all of you export in your ngModule.

To give us a better view of your problem, please provide a demo or repo url 👍

1reaction
jvandemocommented, Jul 15, 2017

@brentchow — Can you please try @sebastianteres’ suggestions at https://github.com/jvandemo/generator-angular2-library/issues/127#issuecomment-315380579 to see if they fix your errors? Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

NG0301: Export not found! - Angular
Angular can't find a directive with {{ PLACEHOLDER }} export name. The export name is specified in the exportAs property of the directive...
Read more >
Angular build with --aot fails with 'ɵbl' (imported as 'i1') was ...
It seems like there's a bug with with the --aot flag, as it successfully compiles without it. How can I find what is...
Read more >
Making your Angular 2 library statically analyzable for AoT
1. const lambda => export function · 2. default export => named export · 3. private, protected accessors should be changed to public...
Read more >
How to create AOT/JIT compatible Angular 4 library ... - Trekhleb
Full version of tsconfig-aot.json in angular-library-seed repository. 2. How to export? I've found the following building scheme working for me ...
Read more >
A complete guide to Angular libraries - Will Taylor Blog
2 ) Alternatively, include your fonts and images in an assets folder within the library. As the `ng-packagr` build process will not copy...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found