evanyeung / terminal-slack

Terminal client for slack
MIT License
1.03k stars 78 forks source link

SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode #36

Closed moschan closed 7 years ago

moschan commented 7 years ago

Expected behavior

Running without error.

Actual behavior

showing an error when I execute node main.js An error detail is following.

Others

Error message is following:

bash-4.4$ node main.js
[Path to root]/main.js:8
let users;
^^^

SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
    at exports.runInThisContext (vm.js:54:16)
    at Module._compile (module.js:375:25)
    at Object.Module._extensions..js (module.js:406:10)
    at Module.load (module.js:345:32)
    at Function.Module._load (module.js:302:12)
    at Function.Module.runMain (module.js:431:10)
    at startup (node.js:141:18)
    at node.js:977:3
moschan commented 7 years ago

oh, I found an existing issue. https://github.com/evanyeung/terminal-slack/issues/34