Skip to content

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

Description

@mb-ca

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

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions