-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ahead-of-Time (AoT) compilation fails #13
Comments
Hello @ttmarek, Another dev ran into a similar issue with ngrx-localstorage. Essentially you need to avoid compose in the module setup in your production builds. Here is the issue: btroncone/ngrx-store-localstorage#13 Let me know if you have any other issues, hope this helps! |
Closing as it appears this has been solved 👍 |
Hey sorry about that @btroncone, I completely forgot I opened this. The issue was with exporting the function expression. So we wrapped the meta reducer in another meta reducer that was defined and exported as a function declaration. Here's our documented solution: https://github.com/rangle/angular-2-aot-sandbox/tree/master/tests/ngrx-compose |
Awesome, thanks! 👍🏻 |
Hi @btroncone,
First, thanks for all your hard work on this lib, it's great. But, recently I've been running into some issues with getting the AoT compiler to successfully compile the ngrx-store-logger. Here's the error I'm getting:
We've set up an example that you can easily run to reproduce the problem here: https://github.com/rangle/angular-2-aot-sandbox
Just follow these steps:
You can find the example source here: https://github.com/rangle/angular-2-aot-sandbox/tree/master/tests/ngrx-store-logger
Any idea why this might be happening?
The text was updated successfully, but these errors were encountered: