Giter VIP home page Giter VIP logo

Comments (1)

boutell avatar boutell commented on June 13, 2024

You're trying to use the module in an environment that doesn't support ES6, specifically "let" statements. Either you're passing it through an old version of uglifyjs, or you're trying to use it in IE11, or you're running it on a truly archaic version of Node, i.e. Node 4 or earlier. (If you are: yikes, stop doing that today, it hasn't received security updates in years.)

But, you're in luck: the whole module looks to still be ES5 compatible except for two lines of code that used "let". So I changed those back to "var" to be consistent with the rest of the module and published version 1.1.1.

This module will no doubt migrate to ES6 at some point, but there is no urgency on that.

from random-words.

Related Issues (15)

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.