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.

Library not ready for AOT

See original GitHub issue

This library is not ready for aot compilation by ngc. It throws this error during AOT compilation Error: Unexpected value 'TimeAgoPipe' declared by the module 'AppModule'

From what ic ould find its missing a file called “.metadat.json”. It is required for aot compilation of any angular 2 library. You can read it all about here - https://medium.com/@isaacplmann/getting-your-angular-2-library-ready-for-aot-90d1347bcad#.dugqwr8za

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
arknottscommented, Feb 2, 2017
0reactions
arknottscommented, Feb 9, 2017

Works great now, thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Making your Angular 2 library statically analyzable for AoT
If you want to get your angular 2 library ready for AoT compilation, check out this article for an overview. If you're unable...
Read more >
How to create AOT/JIT compatible Angular 4 library ... - LinkedIn
You want to create component library for Angular 4 and publish it on NPM. You want your library to be ready for further...
Read more >
Angular 6 - AOT compilation on library to be used as lazily ...
This is working fine as long as i am running the main app in dev mode. When i try it in prod, it...
Read more >
AOT: Unexpected value 'undefined' exported by the module ...
Given a library managed by the new angular-cli v6 library management system. ... ERROR in : Unexpected value 'undefined' exported by the module...
Read more >
angular-aot-overlay - npm
This project contains TickTock library example. The library itself is small and the only thing it does is displaying current time (Plunker ...
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