Closed as not planned
Description
Command
update
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
No response
Description
Description
The Angular CLI v20 migration process fails when updating from Angular v19 to v20 due to ES Module compatibility issues with the ora package.
Additional Information
The error occurs during the optional migration for using the new application builder. The issue appears to be related to CommonJS/ESM compatibility in the dependency chain.
Attempted Solutions
None yet, seeking guidance on how to proceed with the update safely
Minimal Reproduction
Steps to Reproduce
- Start with an Angular v19 project
- Run ng update to check available updates
- Run ng update @angular/cli @angular/core @angular/material angular-eslint
- Observe the migration failure during the process
Exception or Error
✖ Migration failed: require() of ES Module /private/var/folders/xn/6r91mrqx6gd99whlb0dk1gvr0000gn/T/angular-cli-packages-GfYq84/node_modules/ora/index.js from /private/var/folders/xn/6r91mrqx6gd99whlb0dk1gvr0000gn/T/angular-cli-packages-GfYq84/node_modules/@angular-devkit/schematics/tasks/package-manager/executor.js not supported. Instead change the require of index.js in /private/var/folders/xn/6r91mrqx6gd99whlb0dk1gvr0000gn/T/angular-cli-packages-GfYq84/node_modules/@angular-devkit/schematics/tasks/package-manager/executor.js to a dynamic import() which is available in all CommonJS modules.
Your Environment
Angular CLI: 20.0.0
Node: 22.11.0
Package Manager: npm 11.3.0
OS: darwin arm64
Angular: 20.0.0
... animations, build, cli, common, compiler, compiler-cli, core
... forms, platform-browser, platform-browser-dynamic, router
Package Version
------------------------------------------------------
@angular-devkit/architect 0.2000.0
@angular-devkit/core 20.0.0
@angular-devkit/schematics 20.0.0
@angular/cdk 20.0.1
@angular/material 20.0.1
@schematics/angular 20.0.0
ng-packagr 20.0.0
rxjs 7.8.2
typescript 5.8.3
Anything else relevant?
No response
Metadata
Metadata
Assignees
Labels
No labels