-
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
Upgraded to Angular 19, Dynamic imports do not work #28947
Comments
Hi @AmitMY, I tested the application locally and couldn't replicate the error. The behavior you're seeing with |
Reproduction video with the above repository. My apologies for not making it easier to reproduce. |
This issue appears to be coming from the
As a workaround, you can exclude this library from being prebundled by updating the configuration as shown below: "serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"headers": {
"Cross-Origin-Opener-Policy": "same-origin",
"Cross-Origin-Embedder-Policy": "require-corp"
},
"prebundle": {
"exclude": ["pose-viewer", "pose-viewer/loader"]
},
"buildTarget": "sign-translate:build"
}
} |
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. |
Which @angular/* package(s) are the source of the bug?
Don't known / other
Is this a regression?
Yes
Description
I upgraded from 18 to 19 using the upgrade command, which also switched me from
browser
toapplication
.After some modifications I managed to make everything run, except for dynamic imports.
My code has a lot of large modules, that are dynamically imported like so:
(Removing the /* webpackChunkName: "pose-viewer" */ does not help, but I would also like that supported ideally)
Please provide a link to a minimal reproduction of the bug
sign/translate#177 - Can't provide something minimal, as this is the app that was upgraded
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
No response
The text was updated successfully, but these errors were encountered: