Skip to content
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 flag doesn't seem to be working #31

Closed
aegyed91 opened this issue Nov 17, 2015 · 4 comments
Closed

--harmony_modules flag doesn't seem to be working #31

aegyed91 opened this issue Nov 17, 2015 · 4 comments

Comments

@aegyed91
Copy link

node --harmony_modules app.js

/Users/tsm/Sites/vita.hu/app.js:5
import path from 'path';
^^^^^^

SyntaxError: Unexpected token import
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:404:25)
    at Object.Module._extensions..js (module.js:432:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Function.Module.runMain (module.js:457:10)
    at startup (node.js:136:18)
    at node.js:972:3

node -v = v5.0.0
os = osx 10.11.1

@bnoordhuis
Copy link
Member

Duplicate of nodejs/node#2760, nodejs/node#2976 and probably others. Executive summary: yes, it doesn't work.

@bnoordhuis
Copy link
Member

To expand on that, if a feature is behind a flag, it's safe to assume it's not fully functional.

@aegyed91
Copy link
Author

Yeah i read that, just wanted to assure if there is something i do wrong.

offtopic: if you have any experience with node-inspector and babel + have 5 minutes, could you check if the reproduction repo works with you? node-inspector/node-inspector#771

if you do, feel free to post there. no more offtopic here

@balupton
Copy link

Noting that the tracking of progress for this seems to be at nodejs/NG#5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants