Nx workspace throws error on creating remote app

Viewed 274

As a first command I used to create a host app, by using:

nx g @nrwl/angular:host shell
  • it is created.

as a next step I trying to create a remote app by using this command:

nx g @nrwl/angular:remote gallery --port=3000

But getting an error as :

Cannot find module 'nx/src/generators/utils/json'

how to fix this?

I find the error raised from the following path:

node_modules/@nrwl/jest/node_modules/@nrwl/devkit/src/generators/format-files.js; node_modules/@nrwl/angular/node_modules/@nrwl/workspace/src/generators/library/library.js /node_modules/@nrwl/angular/src/generators/application/application.js node_modules/@nrwl/angular/src/generators/remote/remote.js node_modules/nx/src/config/workspaces.js node_modules/nx/src/command-line/generate.js node_modules/nx/src/command-line/nx-commands.js node_modules/nx/bin/init-local.js node_modules/nx/bin/nx.js

0 Answers
Related