Hi, I want to integrate the newer version of a node module I’ve been using. The old version worked just fine, but the new version has some more features I need.
This new version uses a lot of ES6 syntax. My understanding is that Meteor has supported ES6 for a while.
But I installed the module and got this error:
W20170728-20:29:25.229(-4)? (STDERR) C:\Users\steve\wb\papyri\papyri-mrt\node_modules\goodreads\lib\goodreads\goodreads.js:5
W20170728-20:29:25.231(-4)? (STDERR) import http from 'http';
W20170728-20:29:25.232(-4)? (STDERR) ^^^^^^
W20170728-20:29:25.232(-4)? (STDERR)
W20170728-20:29:25.234(-4)? (STDERR) SyntaxError: Unexpected reserved word
W20170728-20:29:25.236(-4)? (STDERR) at exports.runInThisContext (vm.js:53:16)
W20170728-20:29:25.237(-4)? (STDERR) at Module._compile (module.js:373:25)
W20170728-20:29:25.238(-4)? (STDERR) at Object.Module._extensions..js (module.js:416:10)
W20170728-20:29:25.239(-4)? (STDERR) at Module.load (module.js:343:32)
W20170728-20:29:25.239(-4)? (STDERR) at Function.Module._load (module.js:300:12)
W20170728-20:29:25.240(-4)? (STDERR) at Module.require (module.js:353:17)
W20170728-20:29:25.241(-4)? (STDERR) at require (internal/module.js:12:17)
W20170728-20:29:25.242(-4)? (STDERR) at Object.<anonymous> (C:\Users\steve\wb\papyri\papyri-mrt\node_modules\goodreads\inde
x.js:5:18)
W20170728-20:29:25.243(-4)? (STDERR) at Module._compile (module.js:409:26)
W20170728-20:29:25.244(-4)? (STDERR) at Object.Module._extensions..js (module.js:416:10)
Just to be sure, I updated the ecmascript package to 0.8.2 and Meteor itself to 1.5.1. But I still get the error.
Any ideas on what might be going on?