feat: support @angular/build
as an optional replacement for @angular-devkit/build-angular
in Angular 19 Component Testing
#30903
Labels
CT
Issue related to component testing
npm: @cypress/angular
@cypress/angular package issues
type: feature
New feature that does not currently exist
v14.0.0 🐛
Issue present since 14.0.0
Current behavior
Angular 19 doesn't use devkit (webpack) anymore by default. In Cypress 14 I get this error:
because we don't use the webpack builder anymore, we use purely the @angular/build:application builder.
Also the schematics of the angular upgrade from 18 to 19 will remove the npm package: "@angular-devkit/build-angular" and adds the package:
"@angular/build"
Is cypress able to run with the new builder and not webpack?
Desired behavior
cypress should run with the new application builder (esbuild) instead of webpack which is not used anymore by angular itself
Test code to reproduce
here is our component test:
https://github.com/Servoy/servoy-extra-components
here is the angular.json that has the applicaiton builder (of the dummy project used by cypress)
https://github.com/Servoy/servoy-extra-components/blob/master/angular.json#L37
Cypress Version
14
Node version
v22.11.0
Operating System
windows 11
Debug Logs
Other
No response
The text was updated successfully, but these errors were encountered: