{"action":"opened","issue":{"url":"https://api.github.com/repos/babel/babel/issues/8148","repository_url":"https://api.github.com/repos/babel/babel","labels_url":"https://api.github.com/repos/babel/babel/issues/8148/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/8148/comments","events_url":"https://api.github.com/repos/babel/babel/issues/8148/events","html_url":"https://github.com/babel/babel/issues/8148","id":331484846,"node_id":"MDU6SXNzdWUzMzE0ODQ4NDY=","number":8148,"title":"Babel 7.0.0-beta.49 (--experimental-modules)","user":{"login":"cavaller","id":39249178,"node_id":"MDQ6VXNlcjM5MjQ5MTc4","avatar_url":"https://avatars2.githubusercontent.com/u/39249178?v=4","gravatar_id":"","url":"https://api.github.com/users/cavaller","html_url":"https://github.com/cavaller","followers_url":"https://api.github.com/users/cavaller/followers","following_url":"https://api.github.com/users/cavaller/following{/other_user}","gists_url":"https://api.github.com/users/cavaller/gists{/gist_id}","starred_url":"https://api.github.com/users/cavaller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cavaller/subscriptions","organizations_url":"https://api.github.com/users/cavaller/orgs","repos_url":"https://api.github.com/users/cavaller/repos","events_url":"https://api.github.com/users/cavaller/events{/privacy}","received_events_url":"https://api.github.com/users/cavaller/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-12T08:20:24Z","updated_at":"2018-06-12T08:20:24Z","closed_at":null,"author_association":"NONE","body":"I am using **Node v10.4.0**\r\n\r\n```json\r\n{\r\n  \"devDependencies\": {\r\n    \"@babel/cli\": \"^7.0.0-beta.49\",\r\n    \"@babel/core\": \"^7.0.0-beta.49\",\r\n    \"@babel/node\": \"^7.0.0-beta.49\",\r\n    \"@babel/preset-flow\": \"^7.0.0-beta.49\",\r\n    \"flow-bin\": \"^0.74.0\"\r\n  }\r\n}\r\n```\r\n\r\n## 1. This does not work because I am using the Flow (It is 👌)\r\nnode --experimental-modules ./packages/services/src/server.mjs\r\n\r\n# This both should work but It does not (2, 3)\r\n\r\n## 2. This does not work (ignoring everything probably)\r\n./node_modules/.bin/babel-node --presets \"@babel/preset-flow\" ./packages/services/src/server.mjs --experimental-modules\r\n\r\n```\r\n/Users/m/Desktop/k/packages/services/src/server.mjs:1\r\n(function (exports, require, module, __filename, __dirname) { import http from 'http';\r\n                                                                     ^^^^\r\n\r\nSyntaxError: Unexpected identifier\r\n    at new Script (vm.js:74:7)\r\n    at createScript (vm.js:246:10)\r\n    at Object.runInThisContext (vm.js:298:10)\r\n    at Module._compile (internal/modules/cjs/loader.js:670:28)\r\n    at Module._compile (/Users/m/Desktop/k/node_modules/pirates/lib/index.js:91:24)\r\n    at Module._extensions..js (internal/modules/cjs/loader.js:713:10)\r\n    at Object.newLoader [as .mjs] (/Users/m/Desktop/k/node_modules/pirates/lib/index.js:96:7)\r\n    at Module.load (internal/modules/cjs/loader.js:612:32)\r\n    at tryModuleLoad (internal/modules/cjs/loader.js:551:12)\r\n    at Function.Module._load (internal/modules/cjs/loader.js:543:3)\r\n```\r\n\r\n## 3. This does not work (ignoring flow preset)\r\nNODE_OPTIONS=--experimental-modules ./node_modules/.bin/babel-node --presets \"@babel/preset-flow\" ./packages/services/src/server.mjs\r\n\r\n```\r\n(node:3332) ExperimentalWarning: The ESM module loader is experimental.\r\n(node:3333) ExperimentalWarning: The ESM module loader is experimental.\r\nfile:///Users/m/Desktop/k/packages/services/src/Client/server.mjs:10\r\nexport const context = (context: Context) => {\r\n                               ^\r\nSyntaxError: Unexpected token :\r\n    at translators.set (internal/modules/esm/translators.js:31:13)\r\n```\r\n"}}
{"actor":{"display_login":"cavaller"}}