bmac / generator-knockout

A yeoman generator for knockout
MIT License
16 stars 5 forks source link

Getting "Cannot read property 'appname' of null" when trying to run 'yo knockout' #2

Closed grommett closed 11 years ago

grommett commented 11 years ago

Running:

yo knockout
  1. I am asked app name, which I provide
  2. I am asked description, which I provide
    After providing info from 1 and 2 I get this error:
/opt/local/lib/node_modules/generator-knockout/app/index.js:58
     this.appname = props.appname;
                         ^
TypeError: Cannot read property 'appname' of null
bmac commented 11 years ago

Thanks for this info. Could you do me a favor and let me know what version of yeoman you are running. Please run yo -version and let me know what the output is.

Thanks

grommett commented 11 years ago

Sure. I am running 1.0.0-beta.6

bmac commented 11 years ago

Thanks for reporting this. I looks like I pushed a version of generator-knockout that used the new prompt api before yeoman released it.

I updated the version on npm so it is now compatible with the 1.0.0-beta.6 version of yeoman.

If you have generator-knockout globally installed please remove it and reinstall the module. npm remove -g generator-knockout npm install -g generator-knockout

Let me know if this still does not work for you.

grommett commented 11 years ago

Worked! Thanks for the quick fix!