Skip to content

Loading…

Connect error #5

Closed
garryyao opened this Issue · 4 comments

3 participants

@garryyao

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)
@TooTallNate

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.

http://github.com/TooTallNate/wheat/commit/cfb9f546fe26a4092f1e023627aabed01af5d72a

@creationix
Owner

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

@creationix
Owner

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.