You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(Note missing asterisk after function keyword) errors out with rather unhelpful:
Error: yield a function, promise, generator, array, or object
at next (/koatest/node_modules/koa/node_modules/co/index.js:84:10)
at Object.<anonymous> (/koatest/node_modules/koa/node_modules/co/index.js:91:5)
at next (/koatest/node_modules/koa/node_modules/co/index.js:74:19)
at /koatest/node_modules/koa/node_modules/co/index.js:91:5
at Server.<anonymous> (/koatest/node_modules/koa/lib/application.js:102:22)
at Server.EventEmitter.emit (events.js:101:17)
at HTTPParser.parserOnIncoming [as onIncoming] (_http_server.js:505:12)
at HTTPParser.parserOnHeadersComplete (_http_common.js:111:23)
at Socket.socketOnData (_http_server.js:358:22)
at Socket.EventEmitter.emit (events.js:98:17)
A side-question: When there is no yield in the middleware, should koa, and similar frameworks, require a generator?
The text was updated successfully, but these errors were encountered:
it's mostly so that developers don't get confused when they put a regular function instead of a generator function, especially when generators were new.
this restriction will eventually be removed, but for now, you can try doing app.experimental=true, which removes this restriction. #415
Given
(Note missing asterisk after
function
keyword) errors out with rather unhelpful:A side-question: When there is no
yield
in the middleware, should koa, and similar frameworks, require a generator?The text was updated successfully, but these errors were encountered: