-
Notifications
You must be signed in to change notification settings - Fork 12k
Lazy Loading in AOT doesn't work in 7.1.4 #13369
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
Can you try to update the You seem to be using an older version. |
Thank you for answer, @alan-agius4 ! _ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI: 7.1.4
Node: 11.3.0
OS: win32 x64
Angular: 7.0.3
... animations, cdk, common, compiler, compiler-cli, core, forms
... http, language-service, material, platform-browser
... platform-browser-dynamic, router
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.11.4
@angular-devkit/build-angular 0.11.4
@angular-devkit/build-optimizer 0.11.4
@angular-devkit/build-webpack 0.11.4
@angular-devkit/core 7.1.4
@angular-devkit/schematics 7.1.4
@angular/cli 7.1.4
@angular/flex-layout 7.0.0-beta.19
@ngtools/webpack 7.1.4
@schematics/angular 7.1.4
@schematics/update 0.11.4
rxjs 6.3.3
typescript 3.1.6
webpack 4.23.1 |
+1 same issue for me! |
I'm sorry, but we can't reproduce the problem following the instructions you provided. Can you setup a minimal repro please? You can read here why this is needed. A good way to make a minimal repro is to create a new app via This might be related to your directory structure so its really important to get an accurate repro to diagnose this. |
Thank you for help, @alan-agius4 ! This error occurs because I'm using JIT Compiler.
The solution that I found is in this discussion. I'm not sure if that is the best solution (is it possible to build a project who use jit compiler?!). |
Just to clarify the error is happening using the JIT or AOT compiler? As in the original issue it's stats that it's when using JIT Compiler can be used to build your project, however this is not recommended. See why here: https://angular.io/guide/aot-compiler#why-compile-with-aot Can you kindly share the reproduction? |
Thanks for reporting this issue. However, you didn't provide sufficient information for us to understand and reproduce the problem. Please check out our submission guidelines to understand why we can't act on issues that are lacking important information. If the problem persists, please file a new issue and ensure you provide all of the required information when filling out the issue template. |
Upgrading @angular/cli to 7.3.8 seemed to fix my exact issue |
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. |
I`m still having the problem related on issue #12944.
Repro steps
1. Create a new project
2. Create a lazy module
I'm using this
app.routing.ts
:3. Run an AOT serve or build.
Call build/serve using
--aot
> ng serve --aot
And, then, get an error on your browser console:
Originally posted by @danielpcampagna in https://github.com/_render_node/MDEyOklzc3VlQ29tbWVudDQ1MTUyNzk0OQ==/timeline/issue_comment#issuecomment-451527949
The text was updated successfully, but these errors were encountered: