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

Fails at .get() in config/routes.js file #10

Open
anilkmirge opened this issue Mar 25, 2014 · 0 comments
Open

Fails at .get() in config/routes.js file #10

anilkmirge opened this issue Mar 25, 2014 · 0 comments

Comments

@anilkmirge
Copy link

I keep getting the following error and was wondering if anyone else has come across this peculiar complain. Essentially, it fails at this line app.get('/leagues/:leagueId', leagues.show) in config/routes.js

/Users/username/Development/demo/mean-stripdown/node_modules/express/lib/router/index.js:291
throw new Error(msg);
^
Error: .get() requires callback functions but got a [object Undefined]
at /Users/username/Development/demo/mean-stripdown/node_modules/express/lib/router/index.js:291:11
at Array.forEach (native)
at Router.route (/Users/username/Development/demo/mean-stripdown/node_modules/express/lib/router/index.js:287:13)
at Router.(anonymous function) as get
at Function.app.(anonymous function) as get
at module.exports (/Users/username/Development/demo/mean-stripdown/config/routes.js:20:7)
at Object. (/Users/username/Development/demo/mean-stripdown/server.js:46:27)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)

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

No branches or pull requests

1 participant