{"action":"created","issue":{"url":"https://api.github.com/repos/reactjs/react-modal/issues/457","repository_url":"https://api.github.com/repos/reactjs/react-modal","labels_url":"https://api.github.com/repos/reactjs/react-modal/issues/457/labels{/name}","comments_url":"https://api.github.com/repos/reactjs/react-modal/issues/457/comments","events_url":"https://api.github.com/repos/reactjs/react-modal/issues/457/events","html_url":"https://github.com/reactjs/react-modal/issues/457","id":243158335,"number":457,"title":"Unknown option error after stage-2 request (using react-native-web)","user":{"login":"Tredis","id":22584383,"avatar_url":"https://avatars4.githubusercontent.com/u/22584383?v=4","gravatar_id":"","url":"https://api.github.com/users/Tredis","html_url":"https://github.com/Tredis","followers_url":"https://api.github.com/users/Tredis/followers","following_url":"https://api.github.com/users/Tredis/following{/other_user}","gists_url":"https://api.github.com/users/Tredis/gists{/gist_id}","starred_url":"https://api.github.com/users/Tredis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tredis/subscriptions","organizations_url":"https://api.github.com/users/Tredis/orgs","repos_url":"https://api.github.com/users/Tredis/repos","events_url":"https://api.github.com/users/Tredis/events{/privacy}","received_events_url":"https://api.github.com/users/Tredis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-07-15T07:05:02Z","updated_at":"2017-07-15T20:17:45Z","closed_at":null,"body":"Using v2 and v1.9.7 I'm getting same \"Unknown option error\" below. First it asks for es2015, then for stage-2, so I gave them with:\r\n\r\nin .babelrc:\r\n...\"presets\": [\"es2015\", \"stage-2\", \"env\", \"react-native\"],...\r\n\r\nin webpack.config.js:\r\n...module: {loaders: [{query: {\r\n                    presets: ['es2015', 'stage-2', 'env', 'react-native'],\r\n...\r\n\r\nand installed both with yarn.\r\n\r\nI am using react-native-web, react-native@0.46.2, react@15.6.1, etc...\r\n\r\nHere is the full error:\r\nERROR in ./node_modules/react-modal/lib/index.js\r\nModule build failed: ReferenceError: [BABEL] /Users/tomi/Work/test/AwesomeProject/node_modules/react-modal/lib/index.js: Unknown option: /Users/tomi/Work/test/AwesomeProject/node_modules/react/react.js.Children. Check out http://babeljs.io/docs/usage/options/ for more information about options.\r\n\r\nA common cause of this error is the presence of a configuration options object without the corresponding preset name. Example:\r\n\r\nInvalid:\r\n  `{ presets: [{option: value}] }`\r\nValid:\r\n  `{ presets: [['presetName', {option: value}]] }`\r\n\r\nFor more detailed information on preset configuration, please see http://babeljs.io/docs/plugins/#pluginpresets-options. (While processing preset: \"/Users/tomi/Work/test/AwesomeProject/node_modules/react/react.js\")\r\n    at Logger.error (/Users/tomi/Work/test/AwesomeProject/node_modules/babel-core/lib/transformation/file/logger.js:41:11)\r\n    at OptionManager.mergeOptions (/Users/tomi/Work/test/AwesomeProject/node_modules/babel-core/lib/transformation/file/options/option-manager.js:226:20)\r\n    at /Users/tomi/Work/test/AwesomeProject/node_modules/babel-core/lib/transformation/file/options/option-manager.js:265:14\r\n    at /Users/tomi/Work/test/AwesomeProject/node_modules/babel-core/lib/transformation/file/options/option-manager.js:323:22\r\n    at Array.map (native)\r\n    at OptionManager.resolvePresets (/Users/tomi/Work/test/AwesomeProject/node_modules/babel-core/lib/transformation/file/options/option-manager.js:275:20)\r\n    at OptionManager.mergePresets (/Users/tomi/Work/test/AwesomeProject/node_modules/babel-core/lib/transformation/file/options/option-manager.js:264:10)\r\n    at OptionManager.mergeOptions (/Users/tomi/Work/test/AwesomeProject/node_modules/babel-core/lib/transformation/file/options/option-manager.js:249:14)\r\n    at OptionManager.init (/Users/tomi/Work/test/AwesomeProject/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)\r\n    at File.initOptions (/Users/tomi/Work/test/AwesomeProject/node_modules/babel-core/lib/transformation/file/index.js:212:65)"},"comment":{"url":"https://api.github.com/repos/reactjs/react-modal/issues/comments/315559499","html_url":"https://github.com/reactjs/react-modal/issues/457#issuecomment-315559499","issue_url":"https://api.github.com/repos/reactjs/react-modal/issues/457","id":315559499,"user":{"login":"Tredis","id":22584383,"avatar_url":"https://avatars4.githubusercontent.com/u/22584383?v=4","gravatar_id":"","url":"https://api.github.com/users/Tredis","html_url":"https://github.com/Tredis","followers_url":"https://api.github.com/users/Tredis/followers","following_url":"https://api.github.com/users/Tredis/following{/other_user}","gists_url":"https://api.github.com/users/Tredis/gists{/gist_id}","starred_url":"https://api.github.com/users/Tredis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tredis/subscriptions","organizations_url":"https://api.github.com/users/Tredis/orgs","repos_url":"https://api.github.com/users/Tredis/repos","events_url":"https://api.github.com/users/Tredis/events{/privacy}","received_events_url":"https://api.github.com/users/Tredis/received_events","type":"User","site_admin":false},"created_at":"2017-07-15T20:17:45Z","updated_at":"2017-07-15T20:17:45Z","body":"I did not solve it, and I would appreciate some help. I did see that issue, but it didn't help me. I don't know how to proceed. Let me know what you guys have any ideas, Thanks"}}
{"actor":{"display_login":"Tredis"}}