moribvndvs / ng2-idle

Responding to idle users in Angular (not AngularJS) applications.
https://moribvndvs.github.io/ng2-idle
Apache License 2.0
315 stars 128 forks source link

Add AOT support #26

Closed herbzi closed 7 years ago

herbzi commented 7 years ago

I'm submitting a ... (check one with "x")

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/HackedByChinese/ng2-idle/blob/master/CONTRIBUTING.md#getting-help

Current behavior If I include ng2-idle in my import modules while doing AOT compile I get the following error:

[11:54:02] Error: Error encountered resolving symbol values statically. Function calls are not supported. Consider replacing the function or lambda...

If I take out the ng2-idle import etc, it works fine.

Related to: https://github.com/angular/angular/issues/11262

Does ng2-idle have support for AoT compilation? I don't see any .metadata.json files.

Please tell us about your environment: Running with ionic 2, windows 10. typescript.

moribvndvs commented 7 years ago

Sorry, I still haven't gotten the hang of AOT yet. I'll try and get this in beta.3.

moribvndvs commented 7 years ago

OK, beta.3 is out. I'm now using ngc to compile the dist JS and includes metadata.

dbrunner82 commented 7 years ago

The beta.3 release doesn't appear to be available on npm. Can you please update the available releases on npm?

moribvndvs commented 7 years ago

beta.3 was pushed and we're already up to beta.4