Giter Site home page Giter Site logo

Comments (7)

seanpmaxwell avatar seanpmaxwell commented on August 14, 2024

This is intended, if you open up the file tsconfig.base.json in the master repo, you can see that the target is "es5". I don't know if you're using a git pull or trying to download from npm, but if you really want to use "es6", download the master repo, and change the target to es6 at the master repo. Or you could just download /src/core, and add the "target" and "lib" key value pairs to tsconfig.json.

from overnight.

nozzlegear avatar nozzlegear commented on August 14, 2024

Thanks! I've got it working without any issues just by switching my server target to es5 with the es2015 lib.

from overnight.

orenmizr avatar orenmizr commented on August 14, 2024

can you please explain that ? do i need to switch to es5 in order to use overnight ? node can understand higher syntax than that. what if a developer wants to avoid compiling to old version of the language.

from overnight.

avizmil avatar avizmil commented on August 14, 2024

I still get the error.
Does overnight support es6 ?

from overnight.

tboothman avatar tboothman commented on August 14, 2024

This is pretty disappointing since I was looking forward to using this package.
Surely everyone's using this within node, and every supported version of node supports es2015 (node 6 supports it too).
Any chance of some movement on this, I'd rather not just copy/paste this library into my project.

from overnight.

seanpmaxwell avatar seanpmaxwell commented on August 14, 2024

OvernightJS now supports es6. I closed this issue a while ago but after more requests to support es6 came in I made it to support es6.

from overnight.

tboothman avatar tboothman commented on August 14, 2024

Awesome, thanks

from overnight.

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.