Comments (18)
Another pnpm user here, found another workaround without downgrading anything:
pnpm add @nestjs/azure-func-http
pnpm add @azure/functions
pnpm add @schematics/angular
nest add @nestjs/azure-func-http
This finally gives this output:
✔ Package installation in progress... ☕
Starting library setup...
CREATE .funcignore (66 bytes)
CREATE host.json (23 bytes)
CREATE local.settings.json (116 bytes)
CREATE proxies.json (72 bytes)
CREATE main/function.json (294 bytes)
CREATE main/index.ts (287 bytes)
CREATE main/sample.dat (23 bytes)
CREATE src/main.azure.ts (321 bytes)
UPDATE package.json (2109 bytes)
✔ Packages installed successfully.
Not sure why those steps were necessary, but i just noticed that all those libraries were present in the package.json
but missing in the node_modules ... perhaps a bug on pnpm side ?
from azure-func-http.
I have the same problem. Manual installation works
from azure-func-http.
In case it helps anyone: I had to downgrade @schematics/angular:
npm i @schematics/angular@^13.0.0
from azure-func-http.
New project:
nest new api
nest add @nestjs/azure-func-http
Out:
Error: Collection "@nestjs/azure-func-http" cannot be resolved.
at NodeModulesEngineHost.resolve (/home/cenguidanos/Desktop/api/node_modules/@angular-devkit/schematics/tools/node-module-engine-host.js:75:19)
at NodeModulesEngineHost._resolveCollectionPath (/home/cenguidanos/Desktop/api/node_modules/@angular-devkit/schematics/tools/node-module-engine-host.js:80:37)
at NodeModulesEngineHost.createCollectionDescription (/home/cenguidanos/Desktop/api/node_modules/@angular-devkit/schematics/tools/file-system-engine-host-base.js:110:27)
at SchematicEngine._createCollectionDescription (/home/cenguidanos/Desktop/api/node_modules/@angular-devkit/schematics/src/engine/engine.js:148:40)
at SchematicEngine.createCollection (/home/cenguidanos/Desktop/api/node_modules/@angular-devkit/schematics/src/engine/engine.js:141:43)
at NodeWorkflow.execute (/home/cenguidanos/Desktop/api/node_modules/@angular-devkit/schematics/src/workflow/base.js:101:41)
at main (/home/cenguidanos/Desktop/api/node_modules/@angular-devkit/schematics-cli/bin/schematics.js:223:24)
at Object.<anonymous> (/home/cenguidanos/Desktop/api/node_modules/@angular-devkit/schematics-cli/bin/schematics.js:314:5)
at Module._compile (internal/modules/cjs/loader.js:1137:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
Failed to execute command: "/home/cenguidanos/Desktop/api/node_modules/@nestjs/cli/node_modules/.bin/schematics" @nestjs/azure-func-http:nest-add --sourceRoot="src" /usr/bin/node /usr/bin/nest add @nestjs/azure-func-http
If previously install:
nest new api
yarn add @nestjs/azure-func-http
nest add @nestjs/azure-func-http
Works fine:
✔ Package installation in progress... ☕
Starting library setup...
CREATE .funcignore (66 bytes)
CREATE host.json (23 bytes)
CREATE local.settings.json (116 bytes)
CREATE proxies.json (72 bytes)
CREATE main/function.json (294 bytes)
CREATE main/index.ts (287 bytes)
CREATE main/sample.dat (23 bytes)
CREATE src/main.azure.ts (321 bytes)
UPDATE package.json (2014 bytes)
✔ Packages installed successfully.
from azure-func-http.
The issue is happening because the azure-func-http package is only compatible with the nest cli versions ^6.0.0, ^7.0.0 or ^8.0.0".
the ^9.0.0 version of nest was released 4 months ago. The following workaround fixed my issue.
- uninstall the @nestjs/cli package globally/locally
- npm install -g @nestjs/[email protected] (8.2.8 is the latest version 8 of the nest cli)
- nest new
- nest add @nestjs/azure-func-http
from azure-func-http.
Thanks @didieryemalin that's worked!
from azure-func-http.
Is this now resolved with v9 support?
from azure-func-http.
Another pnpm user here, found another workaround without downgrading anything:
pnpm add @nestjs/azure-func-http pnpm add @azure/functions pnpm add @schematics/angular nest add @nestjs/azure-func-http
This finally gives this output:
✔ Package installation in progress... ☕ Starting library setup... CREATE .funcignore (66 bytes) CREATE host.json (23 bytes) CREATE local.settings.json (116 bytes) CREATE proxies.json (72 bytes) CREATE main/function.json (294 bytes) CREATE main/index.ts (287 bytes) CREATE main/sample.dat (23 bytes) CREATE src/main.azure.ts (321 bytes) UPDATE package.json (2109 bytes) ✔ Packages installed successfully.
Not sure why those steps were necessary, but i just noticed that all those libraries were present in the
package.json
but missing in the node_modules ... perhaps a bug on pnpm side ?
Thanks mate, this also worked for yarn
.
from azure-func-http.
@davidonlaptop thanks !! IT WORK
from azure-func-http.
Would you be able to share some logs (errors you faced)?
from azure-func-http.
have same problem, here's logs:
personal/blink [nestjs] » nest add @nestjs/azure-func-http
✔ Package installation in progress... ☕
Starting library setup...
Error: Collection "@nestjs/azure-func-http" cannot be resolved.
at NodeModulesEngineHost.resolve (/Users/dmytro/Work/personal/blink/node_modules/@angular-devkit/schematics/tools/node-module-engine-host.js:75:19)
at NodeModulesEngineHost._resolveCollectionPath (/Users/dmytro/Work/personal/blink/node_modules/@angular-devkit/schematics/tools/node-module-engine-host.js:80:37)
at NodeModulesEngineHost.createCollectionDescription (/Users/dmytro/Work/personal/blink/node_modules/@angular-devkit/schematics/tools/file-system-engine-host-base.js:118:27)
at SchematicEngine._createCollectionDescription (/Users/dmytro/Work/personal/blink/node_modules/@angular-devkit/schematics/src/engine/engine.js:162:40)
at SchematicEngine.createCollection (/Users/dmytro/Work/personal/blink/node_modules/@angular-devkit/schematics/src/engine/engine.js:155:43)
at NodeWorkflow.execute (/Users/dmytro/Work/personal/blink/node_modules/@angular-devkit/schematics/src/workflow/base.js:101:41)
at main (/Users/dmytro/Work/personal/blink/node_modules/@angular-devkit/schematics-cli/bin/schematics.js:260:14)
at Object.<anonymous> (/Users/dmytro/Work/personal/blink/node_modules/@angular-devkit/schematics-cli/bin/schematics.js:370:5)
at Module._compile (internal/modules/cjs/loader.js:1072:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
Failed to execute command: node @nestjs/azure-func-http:nest-add --sourceRoot="src" /usr/local/bin/node /usr/local/bin/nest add @nestjs/azure-func-http
^C
from azure-func-http.
Same here using pnpm
, I got it to work removing node_modules
and pnpm-lock.yaml
and running nest add @nestjs/azure-func-http
but it uses npm
not pnpm
, but it works.
from azure-func-http.
please can someone answer @kkikta-bcg ?
from azure-func-http.
@davidonlaptop's solution is what worked for me.
from azure-func-http.
In case it helps anyone: I had to downgrade @schematics/angular:
npm i @schematics/angular@^13.0.0
this works for me
from azure-func-http.
is this package maintained? the problem still exist, on v9 and on v10 of cli
from azure-func-http.
In case it helps anyone: I had to downgrade @schematics/angular:
npm i @schematics/angular@^13.0.0
this work!
from azure-func-http.
$ nest add @nestjs/azure-func-http
✔ Package installation in progress... ☕
Starting library setup...
Error: Cannot find module '@schematics/angular/utility/dependencies'
Require stack:
- C:\udhaya\azure-function\triggerfunction\check\node_modules@nestjs\azure-func-http\schematics\install\index.js
- C:\udhaya\azure-function\triggerfunction\check\node_modules@angular-devkit\schematics\tools\export-ref.js
- C:\udhaya\azure-function\triggerfunction\check\node_modules@angular-devkit\schematics\tools\index.js
- C:\udhaya\azure-function\triggerfunction\check\node_modules@angular-devkit\schematics-cli\bin\schematics.js
Failed to execute command: node @nestjs/azure-func-http:nest-add --source-root="src" C:\Program Files\nodejs\node.exe C:\Users\LENOVO\AppData\Roaming\npm\node_modules@nestjs\cli\bin\nest.js add @nestjs/azure-func-http
i got these issue
from azure-func-http.
Related Issues (20)
- AzureHttpRouter constructor throws an exception HOT 3
- enable server side event support HOT 2
- Cronjobs support HOT 1
- Pls update documentation that this project is abandoned / deprecated HOT 1
- Error: Cannot find module '@schematics/angular/utility/dependencies' HOT 1
- Action Required: Fix Renovate Configuration
- TRouter constructor is undefined at runtime in AzureHttpRouter HOT 7
- Dependency Dashboard
- Response Headers are Not Matching the NEST Response when publish to Azure Function HOT 1
- package fails to install HOT 1
- exclude path not working in Azure function HOT 1
- CORS does not work with azure-func-http HOT 1
- class-validator is not working
- Make nest openapi impl better with azurefx HOT 1
- swagger-ui* not loading HOT 1
- Peer dependencies allows @azure/functions v1 or v3 but not v2 HOT 5
- MonoRepo Support HOT 1
- Azure Functions v4 support HOT 4
- Project dependencies
- Could not resolve dependency with @nestjs/common 9.0.0 HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-func-http.