Skip to content

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

Closed

Description

@aegyed91

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

Activity

  1. bnoordhuis commented on Nov 17, 2015

    @bnoordhuis
    Member

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

  2. bnoordhuis commented on Nov 17, 2015

    @bnoordhuis
    Member

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

  3. aegyed91 commented on Nov 17, 2015

    @aegyed91
    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

  4. balupton commented on Nov 30, 2015

    @balupton

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions