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

Configuring new prisma app will always result in error: Cannot find module '@nx/workspace/src/utilities/version-utils' #853

Open
brense opened this issue Aug 1, 2023 · 0 comments

Comments

@brense
Copy link

brense commented Aug 1, 2023

Executing the command nx g @nx-tools/nx-prisma:init appName will always result in the same error:

$ npx nx g @nx-tools/nx-prisma:init webapp

>  NX  Generating @nx-tools/nx-prisma:init

 >  NX   Cannot find module '@nx/workspace/src/utilities/version-utils'

   Require stack:
   - [project]\node_modules\@nx-tools\nx-prisma\src\generators\init\lib\detect-prisma-installed-version.js
   - [project]\node_modules\@nx-tools\nx-prisma\src\generators\init\generator.js
   - [project]\node_modules\nx\src\config\schema-utils.js
   - [project]\node_modules\nx\src\command-line\generate\generator-utils.js
   - [project]\node_modules\nx\src\command-line\generate\generate.js
   - [project]\node_modules\nx\src\command-line\generate\command-object.js
   - [project]\node_modules\nx\src\command-line\nx-commands.js
   - [project]\node_modules\nx\bin\init-local.js
   - [project]\node_modules\nx\bin\nx.js
   Pass --verbose to see the stacktrace.

Steps to reproduce:

  1. init new monorepo: npx create-nx-workspace@latest package-based --preset=npm
  2. install prisma plugin: npm install -D @nx-tools/nx-prisma
  3. configure prisma app: nx g @nx-tools/nx-prisma:init appName
  • OS: windows 11
  • terminal: Git bash
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