googlearchive / generator-angularfire

Yeoman generator for AngularFire: Angular + Firebase apps
190 stars 52 forks source link

Route Generator produces this message ? #41

Closed bonatoc closed 9 years ago

bonatoc commented 9 years ago

I try to generate a route like this

$ yo angularfire:route page1

and i get this error :

/usr/local/lib/node_modules/generator-angularfire/route/index.js:31
  if( this.env.options.afconfig.specialRoutes[name] !== true) {

 TypeError: Cannot read property 'specialRoutes' of undefined

Any hints on where I should search / a hack I could use ? What could be the culprit ?

abryden commented 9 years ago

I'm having this issue too. Any help would be appreciated

abryden commented 9 years ago

It looks like the offending code was added in 62d7166cbf83bf3463fc9fd9e050cdf5b83bf21a

abryden commented 9 years ago

I kludged around this in my local installation by commenting out line 31 of route\index.js and replacing it with "{", If you do this you may not want to make a route with in the special route names in https://github.com/firebase/generator-angularfire/blob/master/angularfire/config.json

matheusbaumgart commented 9 years ago

Same issue, please fix this :)

srdone commented 9 years ago

I'm having the same issue as well.

yipcma commented 9 years ago

same here. it's broken.

matheusbaumgart commented 9 years ago

@abryden solution to comment out line 31 worked for me. No problems so far.

ctimmins commented 9 years ago

Still having this issue here

companyofwords commented 9 years ago

@abryden commenting out line 31 and putting an '{' worked. Thanks

katowulf commented 9 years ago

Fixed for 1.0.0. Thanks.