Jonathan Lemaine
Jonathan Lemaine

Reputation: 1

resource not found in collection @nestjs/schematics

image with error

enter image description here

hello I try to use https://docs.nestjs.com/recipes/crud-generator but I don't know why that not working my CLI it's updated

Upvotes: 0

Views: 2327

Answers (3)

Telmo Dias
Telmo Dias

Reputation: 4168

I was reading the previous answers, but I had to update both @nestjs/cli and @nestjs/schematics in order to be able to run nest g resource mynewresource .

Upvotes: 1

udara janith
udara janith

Reputation: 1

you need to type nest g resource module-name. Remove the npx part

Upvotes: 0

Dennys González
Dennys González

Reputation: 46

You must update the package @nestjs/schematics use npm i @nestjs/schematics

Upvotes: 0

Related Questions