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
Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
We have an legacy Angular application with i18n enabled. We migrated this application to v19, then enabled Zoneless by removing zone.js and adding provideExperimentalZonelessChangeDetection() in providers: []. We also enabled SSR.
However, the program failed to run
> ng serve
Component HMR has been enabled.
If you encounter application reload issues, you can manually reload the page to bypass HMR and/or disable this feature with the `--no-hmr` command line option.
Please consider reporting any issues you encounter here: https://github.com/angular/angular-cli/issues
Application bundle generation failed. [11.083 seconds]
✘ [ERROR] Could not resolve "zone.js/node"
angular:polyfills-server:angular:polyfills-server:2:7:
2 │ import 'zone.js/node';
╵ ~~~~~~~~~~~~~~
You can mark the path "zone.js/node" as external to exclude it from the bundle, which will remove this error and leave the unresolved path in the bundle.
Watch mode enabled. Watching for file changes...
Searching shows a similar unresolved bug here.
By removing all items in architect:build:polyfills in angular.json (i.e., set it to be an empty array), the issue is gone.
Originally, that array includes two items:
add provideExperimentalZonelessChangeDetection() in providers: []
npx pnpm start
Exception or Error
> ng serve
Component HMR has been enabled.
If you encounter application reload issues, you can manually reload the page to bypass HMR and/or disable this feature with the `--no-hmr` command line option.
Please consider reporting any issues you encounter here: https://github.com/angular/angular-cli/issues
Application bundle generation failed. [12.035 seconds]
✘ [ERROR] Could not resolve "zone.js/node"
angular:polyfills-server:angular:polyfills-server:2:7:
2 │ import 'zone.js/node';
╵ ~~~~~~~~~~~~~~
You can mark the path "zone.js/node" as external to exclude it from the bundle, which will remove this error and leave the unresolved path in the bundle.
Watch mode enabled. Watching for file changes...
Command
serve
Is this a regression?
The previous version in which this bug was not present was
No response
Description
We have an legacy Angular application with i18n enabled. We migrated this application to v19, then enabled Zoneless by removing
zone.js
and addingprovideExperimentalZonelessChangeDetection()
inproviders: []
. We also enabled SSR.However, the program failed to run
Searching shows a similar unresolved bug here.
By removing all items in
architect:build:polyfills
inangular.json
(i.e., set it to be an empty array), the issue is gone.Originally, that array includes two items:
Minimal Reproduction
npx ng add @angular/ssr --server-routing
npx pnpm uninstall zone.js
provideExperimentalZonelessChangeDetection()
inproviders: []
npx pnpm start
Exception or Error
Your Environment
Anything else relevant?
No response
The text was updated successfully, but these errors were encountered: