Comments (6)
Hey, thanks for getting in touch. Which version of node are you using?
from node-tvdb.
node 12.7 without flags returns:
$ node myapp
/myapp/node_modules/node-tvdb/index.js:12
const request = require("request");
^^^^^
SyntaxError: Use of const in strict mode.
...
If you add --harmony it results in a slightly different error:
$ node --harmony myapp
/myapp/node_modules/node-tvdb/index.js:41
class Client {
^^^^^
SyntaxError: Unexpected reserved word
And finally, with --harmony
and --use_strict
flags node-tvdb has no errors but then a dozen of my other modules do :/
from node-tvdb.
if you require('node-tvdb/compat')
does this fix the issue?
from node-tvdb.
(see second piece of example code in example usage in readme for more info)
from node-tvdb.
Ah, yes requiring node-tvdb/compat
does solve it; didn't see that second example there, thank-you.
from node-tvdb.
glad to hear its all working now! let me know if you run into any other issues. thanks!
from node-tvdb.
Related Issues (20)
- Version 10 of node.js has been released
- An in-range update of nock is breaking the build 🚨 HOT 1
- An in-range update of nock is breaking the build 🚨 HOT 2
- An in-range update of mocha is breaking the build 🚨 HOT 5
- An in-range update of jsdoc is breaking the build 🚨 HOT 4
- An in-range update of sinon is breaking the build 🚨 HOT 2
- An in-range update of mocha is breaking the build 🚨 HOT 1
- An in-range update of eslint-plugin-mocha is breaking the build 🚨 HOT 2
- An in-range update of eslint is breaking the build 🚨 HOT 4
- An in-range update of sinon-chai is breaking the build 🚨 HOT 1
- An in-range update of nock is breaking the build 🚨 HOT 5
- Release with index.d.ts HOT 2
- Node engine compatibility HOT 3
- Error: Text data outside root node HOT 3
- HTTP errors are not handled HOT 4
- `getSeriesByName` fails if the name needs to be URL-encoded HOT 1
- Website issues HOT 2
- Typo in documentation HOT 1
- An in-range update of mocha is breaking the build 🚨 HOT 1
- Access-Control-Allow-Origin HOT 2
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 node-tvdb.