We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I've tried to execute the JS with Node.js (both under Eclipse and via OSX Terminal) but I got the error: SyntaxError: Unexpected token import
SyntaxError: Unexpected token import
@dleshem , do you have the same issue?
The text was updated successfully, but these errors were encountered:
import is ES6 syntax that's not supported natively by node. You can use a transpiler like https://babeljs.io/ to convert the code to ES5.
import
Since this code is educational in nature, I have no intention to make it ES5 compliant.
Sorry, something went wrong.
Yes, I was already trying to use Babel (I've read a few posts around the web) but it seems I cannot make it work. I'll try to figure it out.
Tx for the reply
No branches or pull requests
I've tried to execute the JS with Node.js (both under Eclipse and via OSX Terminal) but I got the error:
SyntaxError: Unexpected token import
@dleshem , do you have the same issue?
The text was updated successfully, but these errors were encountered: