Description
Command
serve
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
v19
Description
I often observe a new terminal warning with ng serve
in Angular v20
:
Failed to resolve dependency: angular:locale/data:en, present in client 'optimizeDeps.include'
Failed to resolve dependency: angular:locale/data:en, present in ssr 'optimizeDeps.include'
(There is no optimizeDeps
in our angular.json.)
Minimal Reproduction
The warning doesn't do anything and doesn't always show up. I think it shows up when you update dependencies and then run ng serve
the first time. It doesn't show up on subsequent ng serve
runs, and it doesn't seem to cause any harm so it's low priority. I just thought I'd let you know that it sometimes shows up.
Exception or Error
[vite] (client) Re-optimizing dependencies because lockfile has changed
[vite] (ssr) Re-optimizing dependencies because lockfile has changed (x2)
Failed to resolve dependency: angular:locale/data:en, present in client 'optimizeDeps.include'
Failed to resolve dependency: angular:locale/data:en, present in ssr 'optimizeDeps.include'
Your Environment
Angular CLI: `20.0.1`
Angular: `20.0.2`
Node: `22.16.0`
npm: `11.4.1`
OS: `linux x64`
Anything else relevant?
No response