-
Notifications
You must be signed in to change notification settings - Fork 12k
Error: Runtime compiler is not loaded #5460
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
Comments
A production build uses AOT by default which does not use the runtime compiler. |
@clydin yeah I just thought I'm trying
|
@mikeumus has this issue been resolved yet? I'm facing similiar error with ng build --prod
|
@sorakthunly, it has for me.
From my Stack Overflow answer here: http://stackoverflow.com/a/42843683/1762493 |
@mikeumus Thanks, Mike. There are a lot of answers. Which one of those works for you? Also, is this just a temporary issue for @angular/cli1.0.0-rc.2? |
@mikeumus will revert back to rc.1 does the trick? |
I'm not using compiler class but I still have this error occasionally using AngularClass seed. Now I can always reproduce on one machine with Firefox only. Other clients work as expected |
@sorakthunly, pardon the tardy response, but going ahead in versions resolved it for me I believe. @sherlock1982, which version of the CLI are you running for this? |
I was facing the same Runtime compiler error in AOT production build.
Changing module load to usual lazy load fixed the issue. I feel a bit frustrated. The error message is very bizzare. But hey. Fixed. Hope it helps to anybody.
|
@GeorgeKnap I have the same issue. My problem is that I precisely don't want to lazy load. I wonder if I should open an issue about it.
|
@GeorgeKnap @guenam my problem is exactly same, I had to convert all my modules to lazy loaded modules, i am not sure what the way to load modules with routes in eager way. |
@snagar78 No I didn't: I had not upgrade to angular 5 yet, waiting for 5.1. Upgraded yesterday so I will test this week to see if the issue has miraculously disappeared or not. I'll report it here. What angular version are you using btw? |
The problem exists with 5.1 as well. I just watched a talk by Deborah on routing and discovered loadChildren for non-lazily routed modules. It's too bad it doesn't work for AOT build. I don't want to lazy load my module. Here is what I am doing right now:
|
Just upgraded to 5.1 and, as @dereklin already indicated, the issue stays. |
I started working with version 5.2 and the problem is still there. I found below link which might be helpful. It resolved my issue for now. |
Updated You guys might want to take a look at this #4192 |
@DanielOrmeno I don't understand. #5460 is this page. Typo? :-) |
Yes @guenam! Thanks for pointing it out, I meant #4192, Updated. |
how to do it (import routes) with ng-packaged module? Is it possible? |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report or Feature Request (mark with an
x
)Versions.
1.0.0-rc.2
Repro steps.
ng build -prod -e prod
The log given by the failure.
Desired functionality.
App to run with no errors.
Mention any other details that might be useful.
I've taken a lot of time to make sure my app is matching packages and conventions of a fresh cli-rc2 app (
ng new
) with no luck yet.The text was updated successfully, but these errors were encountered: