-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Copy link
Labels
area: @angular-devkit/architectfreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyseverity5: regressiontype: bug/fix
Description
Command
e2e
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
19.1.0-next.0
Description
Running ng e2e
in a new CLI project, with Cypress added via the official schematics throws:
An unhandled exception occurred: Package subpath './schema.json' is not defined by "exports" in /node_modules/cypress/package.json
This may be an issue with cypress itself of course, but this was previously working with v19.1.0-next.0.
This looks related to 2b8a02b
Minimal Reproduction
Run:
npx @angular/cli@next new schema-e2e --defaults --no-routing
cd schema-e2e
npm config set legacy-peer-deps=true --location=project
ng add @cypress/schematic@2.5.2 --e2e --no-component --skip-confirmation
ng e2e
Exception or Error
An unhandled exception occurred: Package subpath './schema.json' is not defined by "exports" in /node_modules/cypress/package.json
Your Environment
Angular CLI: 19.1.0-next.1
Node: 20.13.1
Package Manager: npm 10.9.0
OS: darwin arm64
Angular: 19.1.0-next.3
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1901.0-next.1
@angular-devkit/build-angular 19.1.0-next.1
@angular-devkit/core 19.1.0-next.1
@angular-devkit/schematics 19.1.0-next.1
@angular/cli 19.1.0-next.1
@schematics/angular 19.1.0-next.1
rxjs 7.8.1
typescript 5.7.2
zone.js 0.15.0
Anything else relevant?
No response
Metadata
Metadata
Assignees
Labels
area: @angular-devkit/architectfreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyseverity5: regressiontype: bug/fix