Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] generate not working #48

Closed
gimox opened this issue Jan 24, 2018 · 4 comments · Fixed by #49
Closed

[BUG] generate not working #48

gimox opened this issue Jan 24, 2018 · 4 comments · Fixed by #49
Assignees
Labels

Comments

@gimox
Copy link
Contributor

gimox commented Jan 24, 2018

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
@gimox gimox changed the title generate not work [BUG] generate not work Jan 24, 2018
@thomrick
Copy link
Contributor

Nest CLI Version 1.0.0 ?

Please upgrade to 2.0.0-rc.1 ;-)

@gimox
Copy link
Contributor Author

gimox commented Jan 24, 2018

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

@thomrick thomrick self-assigned this Jan 25, 2018
@thomrick
Copy link
Contributor

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 !

@thomrick thomrick added the bug label Jan 25, 2018
@thomrick thomrick changed the title [BUG] generate not work [BUG] generate not working Jan 25, 2018
thomrick pushed a commit that referenced this issue Jan 25, 2018
thomrick added a commit that referenced this issue Jan 25, 2018
@thomrick
Copy link
Contributor

upgrade to 2.0.0-rc.2 to get generate fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants