Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Express 3.1: TypeError: Cannot read property '0' of undefined #60

Closed
sokoloveg opened this Issue · 3 comments

3 participants

sokoloveg Gradus Parnassum simone.allemanini@gmail.com
sokoloveg

node 0.8.20
express 3.1.0
coffeecup 0.3.19
All install from npm.

cd node_modules/coffeecup/examples/express/
coffee app.coffee

When trying to open http://localhost:3000/ error appears:

TypeError: Cannot read property '0' of undefined
at new View (/home/neos/node_modules/express/lib/view.js:41:65)
at Function.app.render (/home/neos/node_modules/express/lib/application.js:486:12)
at ServerResponse.res.render (/home/neos/node_modules/express/lib/response.js:753:7)
at app.get.res.render.foo (/home/neos/node_modules/coffeecup/examples/express/app.coffee:11:16)
at callbacks (/home/neos/node_modules/express/lib/router/index.js:161:37)
at param (/home/neos/node_modules/express/lib/router/index.js:135:11)
at pass (/home/neos/node_modules/express/lib/router/index.js:142:5)
at Router._dispatch (/home/neos/node_modules/express/lib/router/index.js:170:5)
at Object.router (/home/neos/node_modules/express/lib/router/index.js:33:10)
at next (/home/neos/node_modules/express/node_modules/connect/lib/proto.js:199:15)

Gradus Parnassum
Owner

Fixed Express example. thanks.

Gradus Parnassum gradus closed this
simone.allemanini@gmail.com

Fixed where?
tks

Gradus Parnassum
Owner

in examples/express/views/index.coffee removed partial
commit 09ba991

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.