You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Missing metadata.json files for AoT compilation #223
Looking into getting AoT support in soon, and how this works with the @select decorator - have been running into some issues with that, and would like to get that resolved soon as AoT will be important for many projects.
Thanks for letting us know about the metadata.json / links to other issues - will try and get this resolved soon.
Reacted by Dag Stuan, Jason Yang/楊朝傑, Lars Rye Jeppesen and paramsingh88
Been busy traveling for work lately and haven't had as much time to work on this, but have a test module published at 4.0.0-aotbeta.3 - still not fully working.
One error once I've gotten past the NgModule error, is how it behaves when you pass functions into selectors.
also there must be another work around for combineReducers function . this style ditch the error of re-exporting Reducer over ngc compilation <Reducer<IAppState>>combineReducers<IAppState>
If you're using angular-cli I believe they've fixed this in beta-18. If you're using webpack, you'll need to use webpack.DefinePlugin to provide a value for process.env in the browser environment:
Hey, sorry about the late reply. I havent had issues with it lately as I've been waiting a while to try and implement it again :) But it looks like you guys have it under control. Thank you! :)
Activity
e-schultz commentedon Sep 12, 2016
Looking into getting AoT support in soon, and how this works with the
@selectdecorator - have been running into some issues with that, and would like to get that resolved soon as AoT will be important for many projects.Thanks for letting us know about the metadata.json / links to other issues - will try and get this resolved soon.
feat(aot): Support AoT - #223
duydao commentedon Oct 5, 2016
Thanks for looking into this! In the meantime, is there any workaround for this issue?
h2qutc commentedon Oct 6, 2016
Hi, did anyone fix this issue ?
e-schultz commentedon Oct 6, 2016
Been busy traveling for work lately and haven't had as much time to work on this, but have a test module published at
4.0.0-aotbeta.3- still not fully working.One error once I've gotten past the NgModule error, is how it behaves when you pass functions into selectors.
If anyone has a demo repo with an AoT app working that they could point me at to help play around with as a test bed, that would be great.
e-schultz commentedon Oct 6, 2016
Some update/progress:
Working on a repo with master of angular-cli.
e-schultz/ng2-redux-aot-example#1
Have it so things don't throw errors, however the
@selectdecorator just fails to work, will investigate further.hasangilak commentedon Oct 8, 2016
i had this problem with ngc over NgRedux error which could be handle like this
you can safely add ReduxWrapper as a provider to NgModule now
hasangilak commentedon Oct 8, 2016
also there must be another work around for combineReducers function . this style ditch the error of re-exporting Reducer over ngc compilation
<Reducer<IAppState>>combineReducers<IAppState>hasangilak commentedon Oct 13, 2016
also there is a problem with redux library which throws an error on NODE_ENV === "productions". no way to handle this ...
feat(aot): Support AoT - #223
feat(aot): Support AoT - #223 (#226)
SethDavenport commentedon Oct 21, 2016
@hasangilak regarding the NODE_ENV === "production" error - are you using angular-cli or webpack by any chance?
SethDavenport commentedon Oct 21, 2016
If you're using angular-cli I believe they've fixed this in beta-18. If you're using webpack, you'll need to use
webpack.DefinePluginto provide a value forprocess.envin the browser environment:SethDavenport commentedon Oct 21, 2016
@dagstuan have you tried the latest ng2-redux 4.0.0 beta 7? I believe it resolves a number of AoT issues.
SethDavenport commentedon Oct 26, 2016
Closing for now. If you're still having AoT issues, be sure to reference #234 for the latest discussion.
dagstuan commentedon Oct 27, 2016
Hey, sorry about the late reply. I havent had issues with it lately as I've been waiting a while to try and implement it again :) But it looks like you guys have it under control. Thank you! :)