Open pt1c opened 1 week ago
Exactly same issue
Hello 👋. Few questions, as this isn't reproducable.
Hello,
- Did this generate a new folder containing a package.json?
Yes
- What other files are present?
- If you try to run install do you get an error?
No.
$ cd project
$ npm i
added 57 packages, changed 2 packages, and audited 554 packages in 4s
63 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
- If you try to run a generator do you get an error?
Yes
$ npx nx g @nx/nest:module --verbose
NX Unable to resolve @nx/nest:module.
Cannot find module '@nx/nest/package.json'
Require stack:
- D:\test\project\node_modules\nx\src\utils\package-json.js
- D:\test\project\node_modules\nx\src\project-graph\plugins\loader.js
- D:\test\project\node_modules\nx\src\project-graph\plugins\index.js
- D:\test\project\node_modules\nx\src\command-line\run\executor-utils.js
- D:\test\project\node_modules\nx\src\devkit-internals.js
- D:\test\project\node_modules\nx\src\utils\assert-workspace-validity.js
- D:\test\project\node_modules\nx\src\project-graph\build-project-graph.js
- D:\test\project\node_modules\nx\src\project-graph\project-graph.js
- D:\test\project\node_modules\nx\src\project-graph\file-utils.js
- D:\test\project\node_modules\nx\src\utils\package-manager.js
- D:\test\project\node_modules\nx\src\utils\child-process.js
- D:\test\project\node_modules\nx\src\command-line\migrate\command-object.js
- D:\test\project\node_modules\nx\src\command-line\nx-commands.js
- D:\test\project\node_modules\nx\bin\init-local.js
- D:\test\project\node_modules\nx\bin\nx.js
Error: Unable to resolve @nx/nest:module.
Cannot find module '@nx/nest/package.json'
Require stack:
- D:\test\project\node_modules\nx\src\utils\package-json.js
- D:\test\project\node_modules\nx\src\project-graph\plugins\loader.js
- D:\test\project\node_modules\nx\src\project-graph\plugins\index.js
- D:\test\project\node_modules\nx\src\command-line\run\executor-utils.js
- D:\test\project\node_modules\nx\src\devkit-internals.js
- D:\test\project\node_modules\nx\src\utils\assert-workspace-validity.js
- D:\test\project\node_modules\nx\src\project-graph\build-project-graph.js
- D:\test\project\node_modules\nx\src\project-graph\project-graph.js
- D:\test\project\node_modules\nx\src\project-graph\file-utils.js
- D:\test\project\node_modules\nx\src\utils\package-manager.js
- D:\test\project\node_modules\nx\src\utils\child-process.js
- D:\test\project\node_modules\nx\src\command-line\migrate\command-object.js
- D:\test\project\node_modules\nx\src\command-line\nx-commands.js
- D:\test\project\node_modules\nx\bin\init-local.js
- D:\test\project\node_modules\nx\bin\nx.js
at getGeneratorInformation (D:\test\project\node_modules\nx\src\command-line\generate\generator-utils.js:39:15)
at D:\test\project\node_modules\nx\src\command-line\generate\generate.js:218:248
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async handleErrors (D:\test\project\node_modules\nx\src\utils\params.js:9:24)
at async Object.handler (D:\test\project\node_modules\nx\src\command-line\generate\command-object.js:13:22)
Encounter the same error
Current Behavior
Trying to create NX workspace< and then failure:
Expected Behavior
workspace successfully created
GitHub Repo
No response
Steps to Reproduce
Nx Report
Failure Logs
No response
Package Manager Version
9.2.0
Operating System
Additional Information
No response