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?
Don't known / other
Is this a regression?
Yes
Description
When certain third-party dependencies are used in conjunction with --live-reload=false, the application fails to load in Angular v19:
Uncaught SyntaxError: The requested module '/@vite/client' does not provide an export named 'injectQuery' (at chunk-QRJ2NFPW.js?v=4363c128:1:10)
Removing --live-reload=false from the ng serve command results in the application working again. It also worked in Angular v18 (with --live-reload=false).
I have found this issue with the @arcgis/core dependency.
To replicate:
npm i @arcgis/core
Then in app.component.ts or main.ts, add an import for a file from the library (add a console.log to prevent dependency from being optimized away):
import FeatureLayer from '@arcgis/core/layers/FeatureLayer'
console.log(FeatureLayer)
Then run the app using:
ng serve --live-reload=false --host=127.0.0.1
Repro of this issue with @arcgis/core is available here:
Which @angular/* package(s) are the source of the bug?
Don't known / other
Is this a regression?
Yes
Description
When certain third-party dependencies are used in conjunction with
--live-reload=false
, the application fails to load in Angular v19:Removing
--live-reload=false
from theng serve
command results in the application working again. It also worked in Angular v18 (with--live-reload=false
).I have found this issue with the
@arcgis/core
dependency.To replicate:
npm i @arcgis/core
Then in
app.component.ts
ormain.ts
, add an import for a file from the library (add aconsole.log
to prevent dependency from being optimized away):Then run the app using:
ng serve --live-reload=false --host=127.0.0.1
Repro of this issue with
@arcgis/core
is available here:https://stackblitz.com/edit/stackblitz-starters-vmdnvkkn?file=src%2Fmain.ts
Another user reported this error with the pdf.js library on this StackOverflow thread:
https://stackoverflow.com/questions/79391578/angular-19-and-vite-throwing-error-about-named-export-injectquery
StackBlitz demo for the pdfjs dependency (from above thread):
https://stackblitz.com/edit/node-c5u2pyx6?file=package.json
Please provide a link to a minimal reproduction of the bug
https://stackblitz.com/edit/stackblitz-starters-vmdnvkkn?file=src%2Fmain.ts
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
Inspecting
@vite/client
file via dev tools shows that it is empty:The text was updated successfully, but these errors were encountered: