Closed racerxdl closed 7 years ago
+1
need node 7.6+ or use babel compile node_modules/koa-bodyparser
I'm using babel. Check my code, is using es2015. Still same error.
My babelrc btw:
{
"plugins": [
"typecheck", "syntax-flow", "transform-flow-strip-types", ["transform-class-properties", { "spec": true }]
],
"sourceMaps": "both",
"presets": ["es2015", "stage-1"]
}
Trying to run koa-bodyparser here I get this error:
My code is: