{"action":"opened","issue":{"url":"https://api.github.com/repos/babel/babel/issues/4506","repository_url":"https://api.github.com/repos/babel/babel","labels_url":"https://api.github.com/repos/babel/babel/issues/4506/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/4506/comments","events_url":"https://api.github.com/repos/babel/babel/issues/4506/events","html_url":"https://github.com/babel/babel/issues/4506","id":176328981,"number":4506,"title":"Weird error message when used preset is not installed","user":{"login":"danez","id":231804,"avatar_url":"https://avatars.githubusercontent.com/u/231804?v=3","gravatar_id":"","url":"https://api.github.com/users/danez","html_url":"https://github.com/danez","followers_url":"https://api.github.com/users/danez/followers","following_url":"https://api.github.com/users/danez/following{/other_user}","gists_url":"https://api.github.com/users/danez/gists{/gist_id}","starred_url":"https://api.github.com/users/danez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danez/subscriptions","organizations_url":"https://api.github.com/users/danez/orgs","repos_url":"https://api.github.com/users/danez/repos","events_url":"https://api.github.com/users/danez/events{/privacy}","received_events_url":"https://api.github.com/users/danez/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/babel/babel/labels/tag:%20polish","name":"tag: polish","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-12T09:16:19Z","updated_at":"2016-09-12T09:16:19Z","closed_at":null,"body":"### package.json\r\n\r\n```json\r\n{\r\n  \"devDependencies\": {\r\n    \"babel-cli\": \"^6.14.0\",\r\n    \"babel-eslint\": \"^6.0.0\",\r\n    \"babel-plugin-transform-class-properties\": \"^6.11.5\",\r\n    \"babel-plugin-transform-object-rest-spread\": \"^6.8.0\",\r\n    \"babel-preset-latest\": \"^6.14.0\"\r\n  }\r\n}\r\n```\r\n\r\n### Babel Configuration (.bablerc, package.json, cli command)\r\n\r\n```json\r\n{\r\n  \"presets\": [\r\n    [\"latest\", { \"es2015\": { \"loose\": true } }],\r\n    \"react\"\r\n  ],\r\n  \"plugins\": [\r\n    \"transform-class-properties\",\r\n    \"transform-object-rest-spread\"\r\n  ]\r\n}\r\n\r\n```\r\n\r\n### Expected Behavior\r\nAn error saying something like: `You are using babel-preset-react but babel was not able to find it. Ensure the preset is correctly installed or remove the preset from the babel-config.`\r\n\r\n### Current Behavior\r\n\r\n`ReferenceError: [BABEL] src/components/Highlight.js: Unknown option: foreign.Children. Check out http://babeljs.io/docs/usage/options/ for more info`\r\n\r\n### Your Environment\r\n<!--- Include as many relevant details about the environment you experienced the bug in -->\r\n\r\n| software         | version\r\n| ---------------- | -------\r\n| Babel            |  see package.json\r\n| node             | 4.5.0\r\n| npm              | 3.10.8\r\n| Operating System | macOS 10.11\r\n"}}
{"actor":{"display_login":"danez"}}