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
Found the problem: ContextReplacementPlugin, the same as angular/angular-cli#8563 (comment) . Moving this plugin to dev only builds, solves the problem of chunk generation and everything works fine.
Looks like lazy modules are only compiled in client bundle, because no chunks are generated for them in server bundle:

So, when you try to directly access a lazy module via its URL route, the following error occours:
Reproduce steps
Just build and run the project, then try to access http://localhost:500/lazy directly.
The text was updated successfully, but these errors were encountered: