jscutlery/devkit

Angular CLI setup breaks with 'Cannot find module 'nx/src/config/workspaces'

mb-ca opened this issue · 0 comments

mb-ca commented

When following the guide for setting up with Angular CLI, I run into the following error after running the ng run my-project:ct command.

An unhandled exception occurred: Cannot find module 'nx/src/config/workspaces'
Require stack:
- /Users/mbca/Repositories/channelape-webapp/node_modules/@nrwl/cypress/node_modules/@nrwl/devkit/index.js
- /Users/mbca/Repositories/channelape-webapp/node_modules/@nrwl/cypress/src/executors/cypress/compat.js
- /Users/mbca/Repositories/channelape-webapp/node_modules/@angular-devkit/architect/node/node-modules-architect-host.js
- /Users/mbca/Repositories/channelape-webapp/node_modules/@angular-devkit/architect/node/index.js
- /Users/mbca/Repositories/channelape-webapp/node_modules/@angular/cli/models/architect-command.js
- /Users/mbca/Repositories/channelape-webapp/node_modules/@angular/cli/commands/run-impl.js
- /Users/mbca/Repositories/channelape-webapp/node_modules/@angular-devkit/schematics/tools/export-ref.js
- /Users/mbca/Repositories/channelape-webapp/node_modules/@angular-devkit/schematics/tools/index.js
- /Users/mbca/Repositories/channelape-webapp/node_modules/@angular/cli/utilities/json-schema.js
- /Users/mbca/Repositories/channelape-webapp/node_modules/@angular/cli/models/command-runner.js
- /Users/mbca/Repositories/channelape-webapp/node_modules/@angular/cli/lib/cli/index.js
- /Users/mbca/.nvm/versions/node/v12.21.0/lib/node_modules/@angular/cli/lib/init.js
See "/private/var/folders/5j/5htvfd_j4_gbgvgqw1s4320h0000gn/T/ng-S6CT95/angular-errors.log" for further details.

Not sure if related, but I noticed that the ng g @jscutlery/cypress-angular:setup-ct --project my-project command generates a cypress.json file. Is Cypress 10 is supported?

This can be reproduced here: https://stackblitz.com/edit/node-nym4ck

cd test-app
ng run test-app:ct

Angular: 12.2.3
Cypress: 10.3.1
Node: 14.17.0