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
enum in separate file throws runtime error when built with AOT #10983
changed the title [-]enum in separate file throws runtime error what built with AOT[/-][+]enum in separate file throws runtime error when built with AOT[/+]on May 24, 2018
Activity
Principe92 commentedon May 24, 2018
I am getting the same error. If I run
ng serve aotI don't get the error. However, if I runng build --prod --aotI get the error[-]enum in separate file throws runtime error what built with AOT[/-][+]enum in separate file throws runtime error when built with AOT[/+]Principe92 commentedon May 24, 2018
@dsoltesz according to https://github.com/angular/angular-cli/issues/10655, setting the
"buildOptimizer": false,in angular.json seems to fix it.dsoltesz commentedon May 24, 2018
Doesn’t that kinda negate the benefits of using aot?
Principe92 commentedon May 24, 2018
@dsoltesz Yep. I guess we will have to turn it off until they fix it.
dsoltesz commentedon May 29, 2018
is anyone going to look at this...seems to be a pretty big regression, enums not working in AOT?
dsoltesz commentedon Jun 7, 2018
This is a breaking change from past releases. Is there any target build that this will be addressed? Or any work around for the time being?
Invis1ble commentedon Jun 7, 2018
set
buildOptimizertofalseinangular.jsondsoltesz commentedon Jun 7, 2018
this does work but obviously lose that optimization...hopefully someone will fix this.
filipesilva commentedon Jun 7, 2018
Heya, does this still happen with the latest 6.0.x releases?
filipesilva commentedon Jun 7, 2018
Actually, I'm going to close in favor of #10655. It seems to be the exact same thing but there's some more information and a better repro there.
dsoltesz commentedon Jun 7, 2018
this didn't start happening until we upgraded to 6.0.x
dsoltesz commentedon Jun 7, 2018
ok, will subscribe to that post, thanks
angular-automatic-lock-bot commentedon Sep 8, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.