Following geddy tutorial... TypeError #193

Closed
justinmakaila opened this Issue Sep 18, 2012 · 4 comments

Comments

Projects
None yet
2 participants

I'm trying to follow the geddy tutorial on the main page but can't get past the point of installing the mongo-db wrapper. The wrapper IS successfully installed, but then when I run the geddy command, i get this:

/Users/justinmakaila/Desktop/todo_app/config/router.js:20
var router = router.resource('todos');
                    ^
TypeError: Cannot call method 'resource' of undefined
    at Object.<anonymous> (/Users/justinmakaila/Desktop/todo_app/config/router.js:20:21)
    at Module._compile (module.js:446:26)
    at Object..js (module.js:464:10)
    at Module.load (module.js:353:31)
    at Function._load (module.js:311:12)
    at Module.require (module.js:359:17)
    at require (module.js:375:17)
    at [object Object].<anonymous> (/usr/local/lib/node_modules/geddy/lib/app.js:178:18)
    at [object Object].runItem (/usr/local/lib/node_modules/geddy/node_modules/utilities/lib/async.js:108:10)
    at [object Object].<anonymous> (/usr/local/lib/node_modules/geddy/node_modules/utilities/lib/async.js:113:12)

I haven't done anything but create the app, set up the scaffolding, and install the db. I've started over four times already and it all leads to the same thing

Contributor

mde commented Sep 18, 2012

This is likely fallout from our switch to Barista as the router. I just pushed a fix for this to NPM, v0.4.7. Let me know if this fixes you up.

i just did sudo npm install -g geddy, it installed v0.4.7 and i'm still getting the same issue

Contributor

mde commented Sep 18, 2012

Is this with the existing app? Or did you start with a brand new fresh app?

it was existing, but everything worked with a fresh app. thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment