Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Angular schematics v14 fails with Nest v8 #27

Open
marcjulian opened this issue Jul 18, 2022 · 0 comments
Open

Angular schematics v14 fails with Nest v8 #27

marcjulian opened this issue Jul 18, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@marcjulian
Copy link
Member

Current angular schematics v13 are working fine with Nest applications v8 and v9.

"@angular-devkit/core": "^13.3.0",
"@angular-devkit/schematics": "^13.3.0",
"@schematics/angular": "~13.3.0"

Updating to angular v14 still works fine with Nest v9, but applications with v8 are failing.

"@angular-devkit/core": "^14.0.6",
"@angular-devkit/schematics": "^14.0.6",
"@schematics/angular": "~14.0.6"

Error logs for installing nest add nestjs-prisma@0.17.0-dev.2 in a Nest v8 app:

nest add nestjs-prisma@0.17.0-dev.2
✔ Package installation in progress... ☕
Starting library setup...
? Which datasource provider do you want to use for `prisma init`? sqlite
? Do you like to Dockerize your application? (Supports postgresql and mysql) No
    ✅️ Added prisma@latest
TypeError: this.host.readText is not a function
    at new JSONFile (nest-8-prisma/node_modules/@schematics/angular/utility/json-file.js:17:34)
    at addPackageJsonDependency (nest-8-prisma/node_modules/@schematics/angular/utility/dependencies.js:27:18)
    at nest-8-prisma/node_modules/nestjs-prisma/schematics/nestjs-prisma/index.js:40:57
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Promise.all (index 0)
    ✅️ Added @prisma/client@latest
@marcjulian marcjulian added the bug Something isn't working label Dec 16, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant