Git Product home page Git Product logo

Comments (8)

statto1974 avatar statto1974 commented on August 18, 2024 2

I was able to upgrade to the latest version of nodejs and that fixed it.

from create-react-app-typescript.

wmonk avatar wmonk commented on August 18, 2024 1

@dbus0 @statto1974 in fact, node 5 has no LTS, so I would recommend 6.

from create-react-app-typescript.

wmonk avatar wmonk commented on August 18, 2024

That's weird I thought object destructuring was covered in node 5

from create-react-app-typescript.

wmonk avatar wmonk commented on August 18, 2024

I guess not, I will happily accept a PR to get this working back to node4

from create-react-app-typescript.

dbus0 avatar dbus0 commented on August 18, 2024

Any update on this? It prevents any kind of deployment.

If you can show me exactly where and what needs to be done I'll fix it, but I don't know enough to do it myself (I use create-react-app to avoid having these issues).

from create-react-app-typescript.

wmonk avatar wmonk commented on August 18, 2024

@dbus0 the issue is that node 5 does not support destructuring like:

const { highlight } = require('highlight');

Instead it should be:

const highlight = require('highlight').highlight;

For a quick fix I would upgrade your node version, as node4 will be leaving it's LTS period in a few months. Node 6 will support this package fine.

from create-react-app-typescript.

wcandillon avatar wcandillon commented on August 18, 2024

@wmonk any chance to have node v5 support?

from create-react-app-typescript.

wmonk avatar wmonk commented on August 18, 2024

@wcandillon please see above, and here. Node 5 is no longer supported, I would recommend upgrading to 6.

from create-react-app-typescript.

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.