-
Notifications
You must be signed in to change notification settings - Fork 29.7k
New issue
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
--harmony_modules isn't working? #2760
Comments
Same results here, also on OS X (also with strict mode). |
I guess I tweeted too soon :'(
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
|
modules are still in 'in progress' in v8 - so I'd withdraw that tweet anyway!
|
Well, I wanted to experiment with them without using a transpiler which I finally could (Or can't). |
See this comment: https://code.google.com/p/v8/issues/detail?id=1569#c29 V8 developers are currently waiting WHATWG loader spec to mature before completing the ES2015 module support. |
Closing. As others point out, ES6 modules are not implemented in V8 yet. As a rule of thumb, if a feature is behind a flag, you can expect it to be half-baked or downright broken. |
I have problem with '--harmony' in command, and use AppJS module node --harmony ./app/app.js and after run then have error 'AppJS requires Node is run with the --harmony command line flag' pls help me for this error. I use xubuntu OS node v4.2.2. |
And by now what? Is import implemented in node.js 6.0? |
AFAIK, V8 still doesn't support import/export, and thus neither does node.js v6. |
https://bugs.chromium.org/p/v8/issues/detail?id=1569 Mar 16, 2016
|
sad |
Yeah, keep the ticket closed. Modules in JS will never be truly standardized, and if they will, the standard will be obsolete or deprecated the next day, by a new solution, "new standard". Sad. |
As node 6.5.0 still throws up on |
V8 now has support for modules! And implementation has started in chromium 🎉🏆🎊 https://bugs.chromium.org/p/chromium/issues/detail?id=594639#c9 |
Node 9.3.0 still not supported. |
@avesus i believe modules are slated for node 10 (i don't know if they will be backported). however you can use them in nightly builds with |
Following the documentation given here https://nodejs.org/en/docs/es6/
Sample Code
command
OS: Mac OS 10.10.4
Node: 4.0.0
The text was updated successfully, but these errors were encountered: