Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: fn.apply is not a function #12

Open
ghost opened this issue Nov 8, 2016 · 2 comments
Open

TypeError: fn.apply is not a function #12

ghost opened this issue Nov 8, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Nov 8, 2016

Got the same error with using both Koa-v1.x and Koa-v2.x. Also tried koa-router and koa-route, and usage example to no avail. This is the error I get:

TypeError: fn.apply is not a function
at Object. (E:\Sites\test\node_modules\koa-route\index.js:34:19)
at next (native)
at onFulfilled (E:\Sites\test\node_modules\co\index.js:65:19)
at E:\Sites\test\node_modules\co\index.js:54:5
at Object.co (E:\Sites\test\node_modules\co\index.js:50:10)
at converted (E:\Sites\test\node_modules\koa-convert\index.js:17:15)
at dispatch (E:\Sites\test\node_modules\koa\node_modules\koa-compose\index.js:44:32)
at E:\Sites\test\node_modules\koa\node_modules\koa-compose\index.js:36:12
at Server. (E:\Sites\test\node_modules\koa\lib\application.js:136:7)
at emitTwo (events.js:106:13)

(node:4212) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): TypeError: Cannot read property 'headers' of undefined

@Sunshine168
Copy link

I have same question

@fundon
Copy link
Member

fundon commented Jan 4, 2017

Try koa v2 + koa-multer v1.0.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants