-
Notifications
You must be signed in to change notification settings - Fork 42
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
Schematics fail without install dependencies #366
Comments
Would you be able to share some logs (errors you faced)? |
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. |
I have the same problem. Manual installation works |
have same problem, here's logs:
|
Same here using |
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".
|
Thanks @didieryemalin that's worked! |
Is this now resolved with v9 support? |
please can someone answer @kkikta-bcg ? |
In case it helps anyone: I had to downgrade @schematics/angular:
|
Another pnpm user here, found another workaround without downgrading anything:
This finally gives this output:
Not sure why those steps were necessary, but i just noticed that all those libraries were present in the |
@davidonlaptop's solution is what worked for me. |
Thanks mate, this also worked for |
@davidonlaptop thanks !! IT WORK |
this works for me |
is this package maintained? the problem still exist, on v9 and on v10 of cli |
this work! |
$ nest add @nestjs/azure-func-http
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 |
This works to me. Thank your so much :) |
I had the same issue with the following error:
I managed to resolve it with:
PS: Had to downgrade |
This works to me. Thanks |
I'm submitting a...
Current behavior
Schematics fail. You need to install manually
npm i @nestjs/azure-func-http
and then add schematics withnest add @nestjs/azure-func-http
.Expected behavior
Automatically install necessary dependencies.
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
Comodity
Environment
Thanks for your work,
The text was updated successfully, but these errors were encountered: