Git Product home page Git Product logo

Comments (9)

Secbone avatar Secbone commented on August 25, 2024 1

@kuti Do you use babel-polyfill?

from koa-session2.

rimmartin avatar rimmartin commented on August 25, 2024 1

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

from koa-session2.

rimmartin avatar rimmartin commented on August 25, 2024

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?

from koa-session2.

rimmartin avatar rimmartin commented on August 25, 2024

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?

from koa-session2.

Secbone avatar Secbone commented on August 25, 2024

@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 :)

from koa-session2.

Secbone avatar Secbone commented on August 25, 2024

:)

from koa-session2.

0cv avatar 0cv commented on August 25, 2024

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.

from koa-session2.

Secbone avatar Secbone commented on August 25, 2024

@Krisa Great! I will rebuilt it soon! thanks! 👍

from koa-session2.

0cv avatar 0cv commented on August 25, 2024

great thanks!

from koa-session2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.