IonicaBizau / web-term

:tv: A fullscreen terminal in your browser.
MIT License
168 stars 21 forks source link

SyntaxError: Use of const in strict mode. #56

Closed rtwk closed 7 years ago

rtwk commented 7 years ago

/usr/local/lib/node_modules/web-term/bin/web-term:6 const Lien = require("lien") ^^^^^ SyntaxError: Use of const in strict mode.

Getting this error message. Usually it is recommended to start node with --harmony flag to get rid of this problem. But when web-term is used in command line, there is no scope for using --harmony flag.

rtwk commented 7 years ago

Upgrading node from LTS fixed the issue

IonicaBizau commented 7 years ago

:+1:

Glad you fixed it, but you discovered an issue: the files without extension (in this specific case bin/web-term) are not babelified: https://github.com/IonicaBizau/babel-it/issues/11