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

Error: Cannot find module '@schematics/angular/utility/dependencies' #1506

Open
sbmaggarwal opened this issue Mar 26, 2024 · 1 comment
Open

Comments

@sbmaggarwal
Copy link

I'm submitting a...


[ ] Regression 
[x] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Current behavior

I am following the Trilon blog to setup my project: Deploy NestJS Serverless Apps to Azure Functions. When I run command:

nest add @nestjs/azure-func-http

I see this issue:

➜  project-blob-consumer git:(main) ✗ nest add @nestjs/azure-func-http
✔ Package installation in progress... ☕
Starting library setup...
Error: Cannot find module '@schematics/angular/utility/dependencies'
Require stack:
- /Users/Core/Code/project-blob-consumer/node_modules/@nestjs/azure-func-http/schematics/install/index.js
- /Users/Core/Code/project-blob-consumer/node_modules/@angular-devkit/schematics/tools/export-ref.js
- /Users/Core/Code/project-blob-consumer/node_modules/@angular-devkit/schematics/tools/index.js
- /Users/Core/Code/project-blob-consumer/node_modules/@angular-devkit/schematics-cli/bin/schematics.js

Failed to execute command: node @nestjs/azure-func-http:nest-add --source-root="src" /Users/Core/.nvm/versions/node/v18.19.0/bin/node /usr/local/bin/nest add @nestjs/azure-func-http

I have:

➜  project-blob-consumer git:(main) ✗ nvm current
v18.19.0

Expected behavior

The module should be installed fine.

Environment


Nest version: 9.2.0

 
For Tooling issues:
- Node version: v18.19.0  
- Platform:   Apple M2 Pro

Others:

@epictrave
Copy link

I had the same issue as you.

I resolved that issue by adding angular packages.

if you are using yarn.
yarn add @angular-devkit/schematics @angular-devkit/core @schematics/angular

if you are using npm.
yarn add @angular-devkit/schematics @angular-devkit/core @schematics/angular

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

2 participants