-
Notifications
You must be signed in to change notification settings - Fork 208
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
Getting "ChunkLoadError" for Lazy Loaded Modules in Angular v18 Microfrontend Application #737
Comments
This is the
|
We have thoroughly investigated the issue and identified the root cause. The following lines of code were the primary contributors to the problem:
When these lines are commented out, the program runs without errors. However, these lines are essential for establishing a connection with SignalR, so they cannot be omitted. In few other similar issues that were closed, it was recommended to use signalr version 8 to fix this issue. We are using v8 but still this issue is not fixed. Interestingly, this works perfectly with the |
For which library do you need help?
module-federation
Question
We encounter "ChunkLoadError" for a few lazy-loaded modules(modules in the host app) when serving the application locally and in the prod environment.
Environments
App Routing Module Configuration
/dashboard
,/analytics
,/infra
/users
,/facilities
Error details
For the failing routes (
/users
,/facilities
), we see the following error in the browser console:What configurations or steps are we missing to fix the "ChunkLoadError" for these lazy-loaded modules?
If you need additional configurations or files, I can share them. Need your urgent support!
Thank you in advance for your help!
The text was updated successfully, but these errors were encountered: