Comments (1)
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)
- Include corpus size in readme HOT 3
- Exact size of random word HOT 8
- Request - generate words starting with letter HOT 18
- Cannot return the value of randomWords without console.log HOT 1
- Request - Difference between parts of speech HOT 8
- Words being made plural that should not be HOT 1
- Publish latest version to registry HOT 5
- Please update the version HOT 7
- Add a maxsize on the words
- Syntax error with release 1.3.0 HOT 1
- Unable to use minLength HOT 5
- Export CommonJS version HOT 13
- IE10 error "Expected: ';'" HOT 3
- Transpiling HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from random-words.