nestjs/nest-cli

nest generate command not working on node v22.5.1 and typescript v5.5.3

Closed this issue · 3 comments

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

Getting error while using nest command to generate module and controller

Minimum reproduction code

https://github.com/Neetesh4096/nest

Steps to reproduce

npm i -g @nestjs/cli
npm i -g typescript
npm i
nest g mo message
nest g co message/message --flat

Expected behavior

It should create a module under a message folder inside src and add controller in the same folder.

Package version

10.4.2

NestJS version

10.4.2

Node.js version

22.5.1

In which operating systems have you tested?

  • macOS
  • Windows
  • Linux

Other

No response

same issue
image

Duplicate #2662

Duplicate of #2662