exports not found in library for angular-cli AOT
See original GitHub issueHi 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:
- Created 6 years ago
- Reactions:2
- Comments:7 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 👍
@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!