Skip to content


Connect error #5

garryyao opened this Issue · 4 comments

3 participants


Got a Connect server validation error when starting wheat:

Error: Each layer must have a route and a handle function
    at Server.use (/home/garry/.node_libraries/wheat/connect/index.js:146:15)
    at Server.<anonymous> (/home/garry/.node_libraries/wheat/connect/index.js:102:14)
    at Array.forEach (native)
    at new Server (/home/garry/.node_libraries/wheat/connect/index.js:101:12)
    at Object.createServer (/home/garry/.node_libraries/wheat/connect/index.js:270:12)
    at Object.<anonymous> (/home/garry/bin/wheat:21:9)
    at Module._compile (module:384:23)
    at Module._loadScriptSync (module:393:8)
    at Module.loadSync (module:296:10)
    at Object.runMain (module:447:22)

I assume you updated the connectpkg submodule to the newest commit? I forked and addressed this issue. What what required was retrofitting the bin/wheat executable to use the current Connect API.


Ok, I pulled the changes in, my version should work now too.


Now the npm dependency chain pulls a new enough version of connect. This should work out of the box.

This issue was closed.
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.