Meteor-SSL-proxy icon indicating copy to clipboard operation
Meteor-SSL-proxy copied to clipboard

Unexpected reserve word 'import'

Open bluefangs opened this issue 7 years ago • 0 comments

If i put a console.log statement anywhere in the main.js, I end up with this:

(function (exports, require, module, __filename, __dirname) { import { log } from 'util';
                                                              ^^^^^^

SyntaxError: Unexpected token import
    at createScript (vm.js:56:10)
    at Object.runInThisContext (vm.js:97:10)
    at Module._compile (module.js:542:28)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:383:7)
    at startup (bootstrap_node.js:149:9)

Any solutions?

bluefangs avatar Mar 20 '18 09:03 bluefangs