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
Which @angular/* package(s) are the source of the bug?
compiler-cli
Is this a regression?
Yes
Description
I upgraded to Angular 19.1 and activated HMR.
I am using the @angular/build:dev-server builder.
When I run "ng server" and as soon as I open my app, I get several warnings on the terminal console regarding Vite not able to analyze Dynamic imports.
I don't have dynamic imports, except for Lazy Loading components.
The warnings seem to be related to Lazy Loading and they disappear if I turn HMR off.
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
12:46:39 PM [vite] (client) warning:
/media/mario/Lin-Dev/repos/SmartFactory/EWP.SF.FrontTemplate/.angular/vite-root/SmartFactory/chunk-PVDRENNO.js
395| (() => {
396| function TwostepComponent_HmrLoad(t) {
397| import(new URL("./@ng/component?c=src%2Fapp%2Fcore%2Fauth%2Ftwostep%2Ftwostep.component.ts%40TwostepComponent&t=" + encodeURIComponent(t), import.meta.url).href).then((m) => m.default && i02.\u0275\u0275replaceMetadata(TwostepComponent, m.default, [i02, i12, i22, i32], [NgOtpInputComponent2, TranslateModule2, ReactiveFormsModule2, NgOtpInputModule2, RouterLink, SetupDetailComponent]));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
398| }
399| (typeof ngDevMode === "undefined" || ngDevMode) && TwostepComponent_HmrLoad(Date.now());
The above dynamic import cannot be analyzed by Vite.
See https://github.com/rollup/plugins/tree/master/packages/dynamic-import-vars#limitations for supported dynamic import formats. If this is intended to be left as-is, you can use the /* @vite-ignore */ comment inside the import() call to suppress this warning.
Plugin: vite:import-analysis
File: /media/mario/Lin-Dev/repos/SmartFactory/EWP.SF.FrontTemplate/.angular/vite-root/SmartFactory/chunk-PVDRENNO.js
Please provide the environment you discovered this bug in (run ng version)
Which @angular/* package(s) are the source of the bug?
compiler-cli
Is this a regression?
Yes
Description
I upgraded to Angular 19.1 and activated HMR.
I am using the @angular/build:dev-server builder.
When I run "ng server" and as soon as I open my app, I get several warnings on the terminal console regarding Vite not able to analyze Dynamic imports.
I don't have dynamic imports, except for Lazy Loading components.
The warnings seem to be related to Lazy Loading and they disappear if I turn HMR off.
Please provide a link to a minimal reproduction of the bug
No response
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: