You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
answer the cli questions
✔ Where would you like to create your workspace? · nx-generator-bug
✔ Which stack do you want to use? · angular
✔ Integrated monorepo, or standalone project? · standalone
✔ Default stylesheet format · css
✔ Test runner to use for end to end (E2E) tests · none
✔ Would you like to use Standalone Components in your application? · Yes
✔ Would you like to add routing? · No
✔ Enable distributed caching to make your CI faster · No
NX Creating your v17.0.1 workspace.
To make sure the command works reliably in all environments, and that the preset is applied correctly,
Nx will run "npm install" several times. Please wait.
✔ Installing dependencies with npm
✔ Successfully created the workspace: nx-generator-bug.
3. execute npx nx g @nx/angular:service my-service
> NX Generating @nx/angular:service
> NX Package "@nx/angular" was found but does not support schematics.
Error: Package "@nx/angular" was found but does not support schematics.
at NodeModulesEngineHost.resolve (/home/dev/workspace/codedimension/youtube/nx-generator-bug/node_modules/@angular-devkit/schematics/tools/node-module-engine-host.js:53:23)
at NodeModulesEngineHost._resolveCollectionPath (/home/dev/workspace/codedimension/youtube/nx-generator-bug/node_modules/@angular-devkit/schematics/tools/node-module-engine-host.js:80:37)
at NodeModulesEngineHost.createCollectionDescription (/home/dev/workspace/codedimension/youtube/nx-generator-bug/node_modules/@angular-devkit/schematics/tools/file-system-engine-host-base.js:118:27)
at SchematicEngine._createCollectionDescription (/home/dev/workspace/codedimension/youtube/nx-generator-bug/node_modules/@angular-devkit/schematics/src/engine/engine.js:161:40)
at SchematicEngine.createCollection (/home/dev/workspace/codedimension/youtube/nx-generator-bug/node_modules/@angular-devkit/schematics/src/engine/engine.js:154:43)
at getCollection (/home/dev/workspace/codedimension/youtube/nx-generator-bug/node_modules/nx/src/adapter/ngcli-adapter.js:126:40)
at Object.generate (/home/dev/workspace/codedimension/youtube/nx-generator-bug/node_modules/nx/src/adapter/ngcli-adapter.js:421:24)
at /home/dev/workspace/codedimension/youtube/nx-generator-bug/node_modules/nx/src/command-line/generate/generate.js:259:97
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async handleErrors (/home/dev/workspace/codedimension/youtube/nx-generator-bug/node_modules/nx/src/utils/params.js:9:16)
Package Manager Version
9.5.1
Operating System
macOS
Linux
Windows
Other (Please specify)
Additional Information
Windows 11
NodeJS: v18.16.0
The text was updated successfully, but these errors were encountered:
henriquecustodia
changed the title
Error when trying to create a Angular service with Nx generator
Error when trying to create an Angular service with Nx generator
Oct 22, 2023
Current Behavior
When I execute the command
I face the following error
Expected Behavior
After execute the generator command, Nx should create two file for me (the Angular service and its spec).
GitHub Repo
https://github.com/henriquecustodia/nx-generator-bug
Steps to Reproduce
✔ Where would you like to create your workspace? · nx-generator-bug
✔ Which stack do you want to use? · angular
✔ Integrated monorepo, or standalone project? · standalone
✔ Default stylesheet format · css
✔ Test runner to use for end to end (E2E) tests · none
✔ Would you like to use Standalone Components in your application? · Yes
✔ Would you like to add routing? · No
✔ Enable distributed caching to make your CI faster · No
To make sure the command works reliably in all environments, and that the preset is applied correctly,
Nx will run "npm install" several times. Please wait.
✔ Installing dependencies with npm
✔ Successfully created the workspace: nx-generator-bug.
3. execute
npx nx g @nx/angular:service my-service
Nx Report
Failure Logs
Package Manager Version
9.5.1
Operating System
Additional Information
Windows 11
NodeJS: v18.16.0
The text was updated successfully, but these errors were encountered: