-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Lazy Loading not creating bundles #2937
Comments
For me the Bundles for lazy load Routing modules are not getting created. It only creates a main chunk and not any module chunks. |
I have the same issue. I have updated my app to angular-cli beta18 (from beta16), and my extra chunks are not created anymore, but they are included inside the main bundle file. |
I have been digging into it more. Still haven't identified an exact cause. I am trying to break it down to as small an example as I can. I looked through the cli code but I couldn't find anything that jumps our as a culprit. Will update issue when I find something. |
Is this duplicate with #2496? |
I've got two projects, a new project (just started 2 weeks ago) and it's generating chunks. An older project, which is bigger, doesn't generate any chunks and I'm sure my lazy loading modules are not imported anywhere using import{} statement. As a test, I've added an empty module to that project, lazy loading it from the root module, and still no chunks. |
For me the issue seems to be.. |
having the same issue here... when trying to lazy-load a module the CLI is not generating the bundle for that module. I'm using version 1.0.0-beta.19-3 of angular-cli |
@filipesilva Do you have any update on this? Or anyone found any workaround? |
@filipesilva having same issue. |
@a5hik have you tried this workaround #2496 (comment) ? |
I'm sorry but I don't have an update, no. It's on the shortlist of stuff that needs to be looked into for RC1. I'm closing in favor of #2496 as it seems to be the same. |
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. |
OS?
Versions.
Repro steps.
Mention any other details that might be useful.
The text was updated successfully, but these errors were encountered: