cortexjs-legacy / cortex

The package manager for browsers
http://ctx.io
Other
224 stars 34 forks source link

.get() requires callback functions but got a [object Undefined] when cortex server #456

Closed shallweel closed 10 years ago

shallweel commented 10 years ago

ERR! Error: .get() requires callback functions but got a [object Undefined] at /usr/local/lib/node_modules/cortex/node_modules/express/lib/router/index.js:291:11 at Array.forEach (native) at Router.route (/usr/local/lib/node_modules/cortex/node_modules/express/lib/router/index.js:287:13) at Router.(anonymous function) as get at Function.app.(anonymous function) as get at /usr/local/lib/node_modules/cortex/lib/command/server.js:57:16 at Array.forEach (native) at Object.server.createAction (/usr/local/lib/node_modules/cortex/lib/command/server.js:56:32) at Server. (/usr/local/lib/node_modules/cortex/lib/command/server.js:29:10) at Server.g (events.js:180:16)

shallweel commented 10 years ago

cortex version 5.6.6

kaelzhang commented 10 years ago

fixed.

blame to kaelzhang/make-array#1

npm install -g cortex is needed