Closed und3fined closed 8 years ago
@KuTi Do you use babel-polyfill
?
Hi, I get this with v 1.0.4 and before with 1.0.3.
koa next and nodejs 6.2.0. Trying to set up with redis. Should I install Babel anyway?
Ah, I'm just not understanding this babel thing; looks like it has to do with yet another javascript spec layer
Which one are you using?
@rimmartin koa next dependents babel ( async/await ), so you can use this middleware and koa next with babel-preset-2015
and babel-preset -stage-0
:)
Thank you,
I also tried
npm install --save-dev babel-preset-es2015-node6
npm install --save-dev babel-polyfill
which I thought might make it work with V8 in nodejs 6.2 better. Still get the error but it may be my environment yet. Adding the preset -stage-0 part. Nothing more needed from koa session2 :-) Thanks for working on koa v2
:)
This forces us however to add the babelPolyfill even so it may not be required for the rest of the project. Eventually using the transform-runtime instead could be a more modular alternative.
@Krisa Great! I will rebuilt it soon! thanks! 👍
great thanks!