nx-plugins icon indicating copy to clipboard operation
nx-plugins copied to clipboard

Cannot find module '@nrwl/workspace/src/command-line/report'

Open yemi opened this issue 2 years ago • 4 comments

I'm getting this when running yarn nx generate nx-plugin-esbuild:node-init few --no-interactive --dry-run:

Cannot find module '@nrwl/workspace/src/command-line/report'Cannot find module '@nrwl/workspace/src/command-line/report'
Require stack:
- ~/app/node_modules/nx-plugin-devkit/src/lib/executor-utils/info.js
- ~/app/node_modules/nx-plugin-devkit/src/index.js
- ~/app/node_modules/nx-plugin-esbuild/src/generators/node-init/normalize-schema.js
- ~/app/node_modules/nx-plugin-esbuild/src/generators/node-init/generator.js
- ~/app/node_modules/nx/src/config/workspaces.js
- ~/app/node_modules/nx/src/command-line/generate.js
- ~/app/node_modules/nx/src/command-line/nx-commands.js
- ~/app/node_modules/nx/bin/init-local.js
- ~/app/node_modules/nx/bin/nx.js'fewefw Cannot find module '@nrwl/workspace/src/command-line/report'

I'm using nx: 14.1.4 and @nrwl/workspace:14.1.5.

yemi avatar May 13 '22 08:05 yemi

Please use nx-esbuild instead, as only vite plugin is supported in this project :-)

linbudu599 avatar May 17 '22 08:05 linbudu599

Same issue here using nx 14.1.7 and prisma generator

alexwine36 avatar May 19 '22 21:05 alexwine36

@alexwine36 / @yemi PR #82 update the Nx dependency to 14.x and will fix your issues

@linbudu599 let me know what you think 👍

jcvalerio avatar Jul 05 '22 03:07 jcvalerio

The latest 2.2.1 version should make nx-vite works with 14.x workspace now

linbudu599 avatar Jul 09 '22 09:07 linbudu599