nest-cli
nest-cli copied to clipboard
[BUG] generate not working
nest generate {command} {name}
send always error: Cannot read property 'find' of undefined
[System Information]
OS Version macOS High Sierra
NodeJS Version v6.9.5 Boron
NPM Version 5.6.0
[Nest Information]
NestJS Version 4.5.10
Nest CLI Version 1.0.0
Nest CLI Version 1.0.0 ?
Please upgrade to 2.0.0-rc.1 ;-)
my cli is 2.0.0-rc.1, but cli info say 1.0.0 (a bug?)
I confirm, if i type nest:
nest 2.0.0-rc.1
USAGE
nest <command> [options]
COMMANDS
new <name> [destination] Create a new Nest application
info Display Nest CLI information.
serve Start a hot reload development server.
generate <type> <name> Generate a new Nest asset
help <command> Display help for a specific command
GLOBAL OPTIONS
-h, --help Display help
-V, --version Display version
--no-color Disable colors
--quiet Quiet mode - only displays warn and error messages
-v, --verbose Verbose mode - will also output debug messages
MORE INFO
Nest.js CLI
but if i type nest info
_ _ _ ____ _ ___
| \ | | ___ ___| |_ / ___| | |_ _|
| \| |/ _ \/ __| __| | | | | | |
| |\ | __/\__ \ |_ | |___| |___ | |
|_| \_|\___||___/\__| \____|_____|___|
[System Information]
OS Version macOS High Sierra
NodeJS Version v6.9.5 Boron
NPM Version 5.6.0
[Nest Information]
NestJS Version 4.5.10
Nest CLI Version 1.0.0
Bugs found :
- handler async do some weird things
- asset emitter does not create module folder
About the info command bug :
- the code look at the project version not the CLI version
Let's fix it !
upgrade to 2.0.0-rc.2 to get generate fix