Skip to content

Angular schematics v14 fails with Nest v8 #27

Open
@marcjulian

Description

@marcjulian

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 [email protected] in a Nest v8 app:

nest add [email protected]
✔ 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions