nest-cli icon indicating copy to clipboard operation
nest-cli copied to clipboard

[ERROR] Generate Module

Open sofyan-ahmad opened this issue 8 years ago • 2 comments

Environment:

  • OSX: Sierra
  • NodeJS version: 9.3.0
  • NPM version: 5.6.0
  • nest-cli version: 2.0.0-rc.3

Command: nest generate module admin

Error message:

create [WORKING_DIR]/src/modules/admin/admin.module.ts

Unexpected token . in JSON at position 36

Note: modules/admin/admin.modulet.ts was created, but other files were not

sofyan-ahmad avatar Feb 20 '18 10:02 sofyan-ahmad

Hey @sofyanhadia

Thanks for the feedbacks

Can you copy / paste your app.module.ts ?

thomrick avatar Feb 20 '18 10:02 thomrick

The CLI tool was rebuild from scratch and integrate schematics to generate assets. Please upgrade to v4.0.0-rc1

thomrick avatar Apr 01 '18 10:04 thomrick