{"action":"created","issue":{"url":"https://api.github.com/repos/michael/github/issues/343","repository_url":"https://api.github.com/repos/michael/github","labels_url":"https://api.github.com/repos/michael/github/issues/343/labels{/name}","comments_url":"https://api.github.com/repos/michael/github/issues/343/comments","events_url":"https://api.github.com/repos/michael/github/issues/343/events","html_url":"https://github.com/michael/github/issues/343","id":158178594,"number":343,"title":"Unknown plugin \"transform-es2015-modules-umd\"","user":{"login":"knowbody","id":3802023,"avatar_url":"https://avatars.githubusercontent.com/u/3802023?v=3","gravatar_id":"","url":"https://api.github.com/users/knowbody","html_url":"https://github.com/knowbody","followers_url":"https://api.github.com/users/knowbody/followers","following_url":"https://api.github.com/users/knowbody/following{/other_user}","gists_url":"https://api.github.com/users/knowbody/gists{/gist_id}","starred_url":"https://api.github.com/users/knowbody/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knowbody/subscriptions","organizations_url":"https://api.github.com/users/knowbody/orgs","repos_url":"https://api.github.com/users/knowbody/repos","events_url":"https://api.github.com/users/knowbody/events{/privacy}","received_events_url":"https://api.github.com/users/knowbody/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/michael/github/labels/needs%20clarification","name":"needs clarification","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-06-02T16:03:36Z","updated_at":"2016-06-06T09:33:32Z","closed_at":null,"body":"Currently using the library in a RN app, I get this error:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/3802023/15751625/090b19c2-28eb-11e6-9b12-cddc3d5dd84f.png)\r\n\r\nusually this is caused by not excluding babel config from npm.\r\n\r\nThe possible solution would be to move the babel config from `package.json` file to `.babelrc` in the root directory and create `.npmignore` file to exclude `.babelrc` from the npm.\r\n\r\n**.babelrc**\r\n```json\r\n{\r\n  \"babel\": {\r\n    \"presets\": [\r\n      \"es2015\"\r\n    ],\r\n    \"plugins\": [\r\n      [\r\n        \"transform-es2015-modules-umd\",\r\n        {\r\n          \"globals\": {\r\n            \"es6-promise\": \"Promise\"\r\n          }\r\n        }\r\n      ]\r\n    ],\r\n    \"env\": {\r\n      \"development\": {\r\n        \"sourceMaps\": \"inline\"\r\n      }\r\n    }\r\n  }\r\n}\r\n```\r\n\r\n**.npmignore**\r\n```\r\n.babelrc\r\n```"},"comment":{"url":"https://api.github.com/repos/michael/github/issues/comments/223911263","html_url":"https://github.com/michael/github/issues/343#issuecomment-223911263","issue_url":"https://api.github.com/repos/michael/github/issues/343","id":223911263,"user":{"login":"knowbody","id":3802023,"avatar_url":"https://avatars.githubusercontent.com/u/3802023?v=3","gravatar_id":"","url":"https://api.github.com/users/knowbody","html_url":"https://github.com/knowbody","followers_url":"https://api.github.com/users/knowbody/followers","following_url":"https://api.github.com/users/knowbody/following{/other_user}","gists_url":"https://api.github.com/users/knowbody/gists{/gist_id}","starred_url":"https://api.github.com/users/knowbody/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knowbody/subscriptions","organizations_url":"https://api.github.com/users/knowbody/orgs","repos_url":"https://api.github.com/users/knowbody/repos","events_url":"https://api.github.com/users/knowbody/events{/privacy}","received_events_url":"https://api.github.com/users/knowbody/received_events","type":"User","site_admin":false},"created_at":"2016-06-06T09:33:32Z","updated_at":"2016-06-06T09:33:32Z","body":"as I'm using it on the react-native project I need to make requests via `fetch()`, I'm going to for the library and do the changed for my project to work. Once I feel comfortable with my solution I will ping you back so maybe we can merge both. Feel free to close the issue."}}
{"actor":{"display_login":"knowbody"}}