nestjs / azure-func-http

Azure Functions HTTP adapter for Nest framework (node.js) 🌥
https://nestjs.com/
MIT License
151 stars 42 forks source link

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

Open sbmaggarwal opened 7 months ago

sbmaggarwal commented 7 months ago

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 commented 7 months ago

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