Closed zymt closed 7 years ago
ensure your node version is >=7.6.0
@dead-horse Shall we consider support node 6? Since node 6.10.0 LTS is still the officially recommended version.
Finally how did you deal with?
@xiaohanzhang I would very much appreciate that. In an enterprise environment it's hard to sell Node v7.
Hello,
To my understanding, Koa v2.x is forward looking where as v1.x is the stable/production branche.
In our production environment, we use node v6 with koa v1. Here is our dependencies in package.json file:
"dependencies": { "co-body": "^4.2.0", "koa": "^1.2.4", "koa-router": "^5.4.0", ... }
We will move to koa v2 in production only when node v8 LTS comes out (with all its async await goodness).
Hence Yiyu He, was right in closing this non issue.
Regards, Peter
On Thu, Apr 13, 2017 at 8:57 PM, Gregory Cowan notifications@github.com wrote:
@xiaohanzhang https://github.com/xiaohanzhang I would very much appreciate that. In an enterprise environment it's hard to sell Node v7.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/koajs/bodyparser/issues/69#issuecomment-293991498, or mute the thread https://github.com/notifications/unsubscribe-auth/AO7iauXAbAHipuc-jiKib_Eln_gUnw9Aks5rvnAigaJpZM4Me6T6 .
so koa-bodyparser doesn't work with Koa v2 yet?
this is okay
const babelrc = {
"ignore": /node_modules\/(?!(koa-bodyparser)\/).*/,
"presets": ["node6"],
"plugins": [
"transform-class-properties",
"transform-async-to-generator"
]
}
I've forked this module, made it compatible with node v6 and have published it to npm.
yarn add koa-bodyparser-node6
caveat: you cannot count that I keep up with the latest version at all times :)
bodyparser(4.1) in Koa(2.2.0)
just use like
app.use(bodyParser());
error showed as below: