{"action":"created","issue":{"url":"https://api.github.com/repos/expo/expo/issues/1954","repository_url":"https://api.github.com/repos/expo/expo","labels_url":"https://api.github.com/repos/expo/expo/issues/1954/labels{/name}","comments_url":"https://api.github.com/repos/expo/expo/issues/1954/comments","events_url":"https://api.github.com/repos/expo/expo/issues/1954/events","html_url":"https://github.com/expo/expo/issues/1954","id":338693823,"node_id":"MDU6SXNzdWUzMzg2OTM4MjM=","number":1954,"title":"babel-preset-expo doesn't support Babel 7 and RN 0.56","user":{"login":"Hypnosphi","id":6651625,"node_id":"MDQ6VXNlcjY2NTE2MjU=","avatar_url":"https://avatars3.githubusercontent.com/u/6651625?v=4","gravatar_id":"","url":"https://api.github.com/users/Hypnosphi","html_url":"https://github.com/Hypnosphi","followers_url":"https://api.github.com/users/Hypnosphi/followers","following_url":"https://api.github.com/users/Hypnosphi/following{/other_user}","gists_url":"https://api.github.com/users/Hypnosphi/gists{/gist_id}","starred_url":"https://api.github.com/users/Hypnosphi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hypnosphi/subscriptions","organizations_url":"https://api.github.com/users/Hypnosphi/orgs","repos_url":"https://api.github.com/users/Hypnosphi/repos","events_url":"https://api.github.com/users/Hypnosphi/events{/privacy}","received_events_url":"https://api.github.com/users/Hypnosphi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-05T19:13:55Z","updated_at":"2018-08-11T12:27:26Z","closed_at":"2018-07-05T21:30:19Z","author_association":"NONE","body":"In version `0.56`, React Native has migrated to Babel 7. That means that dependencies in `babel-preset-expo` need to be updated, see https://github.com/facebook/react-native/releases/tag/v0.56.0"},"comment":{"url":"https://api.github.com/repos/expo/expo/issues/comments/412272004","html_url":"https://github.com/expo/expo/issues/1954#issuecomment-412272004","issue_url":"https://api.github.com/repos/expo/expo/issues/1954","id":412272004,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMjI3MjAwNA==","user":{"login":"bogdan-calapod","id":5462727,"node_id":"MDQ6VXNlcjU0NjI3Mjc=","avatar_url":"https://avatars1.githubusercontent.com/u/5462727?v=4","gravatar_id":"","url":"https://api.github.com/users/bogdan-calapod","html_url":"https://github.com/bogdan-calapod","followers_url":"https://api.github.com/users/bogdan-calapod/followers","following_url":"https://api.github.com/users/bogdan-calapod/following{/other_user}","gists_url":"https://api.github.com/users/bogdan-calapod/gists{/gist_id}","starred_url":"https://api.github.com/users/bogdan-calapod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bogdan-calapod/subscriptions","organizations_url":"https://api.github.com/users/bogdan-calapod/orgs","repos_url":"https://api.github.com/users/bogdan-calapod/repos","events_url":"https://api.github.com/users/bogdan-calapod/events{/privacy}","received_events_url":"https://api.github.com/users/bogdan-calapod/received_events","type":"User","site_admin":false},"created_at":"2018-08-11T12:27:26Z","updated_at":"2018-08-11T12:27:26Z","author_association":"NONE","body":"I think this issue is causing a problem with my project - a fresh CRNA project with Jest installed. Metro somehow depends on `@babel/core`:\r\n\r\n```\r\n$: npm list @babel/core\r\nREDACTED@0.0.1 /mnt/c/Users/REDACTED\r\n└─┬ react-native@0.55.4\r\n  └─┬ metro@0.30.2\r\n    └── @babel/core@7.0.0-rc.1\r\n```\r\n\r\nMy package.json doesn't include `@babel/core` anywhere, but when running tests I get the following error in Jest:\r\n\r\n```\r\n  ● Test suite failed to run\r\n\r\n    Plugin/Preset files are not allowed to export objects, only functions. In /mnt/c/REDACTED/node_modules/babel-preset-expo/index.js\r\n```\r\n\r\nThe thing is, if I remove the `node_modules/@babel/core` folder, it automatically picks up babel v6, and it works without hiccups. A couple weeks ago it worked just fine, but this week when I ran `npm install` the problem surfaced.\r\n\r\nI see that the `metro@0.30.2` [package.json](https://github.com/facebook/metro/blob/f2b6232c5d93cae580e88fc6741ee87d880318c8/packages/metro/package.json) indeed includes `@babel/core 7.0.0-beta` as a dependency.\r\n\r\nAny idea how I can force Jest to ignore babelv7 installed by metro ? At the moment I've found a quirky workaround by removing the `node_modules/@babel/core` folder in CI before running tests, but I can't do this locally as the packager doesn't start without the v7 babel."}}
{"actor":{"display_login":"bogdan-calapod"}}