Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mb-ca opened this issue Aug 3, 2022 · 0 comments

Comments

@mb-ca
Copy link

mb-ca commented Aug 3, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant