{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/flow/issues/1891","repository_url":"https://api.github.com/repos/facebook/flow","labels_url":"https://api.github.com/repos/facebook/flow/issues/1891/labels{/name}","comments_url":"https://api.github.com/repos/facebook/flow/issues/1891/comments","events_url":"https://api.github.com/repos/facebook/flow/issues/1891/events","html_url":"https://github.com/facebook/flow/issues/1891","id":158331696,"number":1891,"title":"Issue with React Native project","user":{"login":"bolismauro","id":771999,"avatar_url":"https://avatars.githubusercontent.com/u/771999?v=3","gravatar_id":"","url":"https://api.github.com/users/bolismauro","html_url":"https://github.com/bolismauro","followers_url":"https://api.github.com/users/bolismauro/followers","following_url":"https://api.github.com/users/bolismauro/following{/other_user}","gists_url":"https://api.github.com/users/bolismauro/gists{/gist_id}","starred_url":"https://api.github.com/users/bolismauro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bolismauro/subscriptions","organizations_url":"https://api.github.com/users/bolismauro/orgs","repos_url":"https://api.github.com/users/bolismauro/repos","events_url":"https://api.github.com/users/bolismauro/events{/privacy}","received_events_url":"https://api.github.com/users/bolismauro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-03T09:54:52Z","updated_at":"2016-06-03T11:13:06Z","closed_at":null,"body":"Hello everyone. I'm working on a React Native project and I receive this error every time I (or someone else, like a package in `node_modules`) import `react`.\r\n\r\n```\r\nThis modules resolves to \"<<PROJECT_ROOT>>/../../../node_modules/react/package.json\", \r\nwhich is outside both your root directory and all of the entries in\r\nthe [include] section of your .flowconfig.\r\nYou should either add this directory to the [include] section of your .flowconfig,\r\nmove your .flowconfig file higher in the project directory tree, or move this package\r\nunder  your Flow root directory.: /path/to/react/node_modules/react-native/Libraries/ReactIOS/YellowBox.js:263\r\n```\r\n\r\nI honestly don't understand what's going on. Has anyone else this problem?\r\nI searched in the past issues and I only find something related to third party libraries, but never to react itself"},"comment":{"url":"https://api.github.com/repos/facebook/flow/issues/comments/223553007","html_url":"https://github.com/facebook/flow/issues/1891#issuecomment-223553007","issue_url":"https://api.github.com/repos/facebook/flow/issues/1891","id":223553007,"user":{"login":"Benjamin-Dobell","id":482276,"avatar_url":"https://avatars.githubusercontent.com/u/482276?v=3","gravatar_id":"","url":"https://api.github.com/users/Benjamin-Dobell","html_url":"https://github.com/Benjamin-Dobell","followers_url":"https://api.github.com/users/Benjamin-Dobell/followers","following_url":"https://api.github.com/users/Benjamin-Dobell/following{/other_user}","gists_url":"https://api.github.com/users/Benjamin-Dobell/gists{/gist_id}","starred_url":"https://api.github.com/users/Benjamin-Dobell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Benjamin-Dobell/subscriptions","organizations_url":"https://api.github.com/users/Benjamin-Dobell/orgs","repos_url":"https://api.github.com/users/Benjamin-Dobell/repos","events_url":"https://api.github.com/users/Benjamin-Dobell/events{/privacy}","received_events_url":"https://api.github.com/users/Benjamin-Dobell/received_events","type":"User","site_admin":false},"created_at":"2016-06-03T11:13:06Z","updated_at":"2016-06-03T11:13:06Z","body":"@bolismauro I just ran into this myself.\r\n\r\nRemoving:\r\n```\r\n# Flow has a built-in definition for the 'react' module which we prefer to use\r\n# over the currently-untyped source\r\n.*/node_modules/react/react.js\r\n.*/node_modules/react/lib/React.js\r\n.*/node_modules/react/lib/ReactDOM.js\r\n```\r\n\r\nfrom `.flowconfig` seems to resolve the issue. I'm new to React, React Native, Flow and even Node. So I don't pretend to understand exactly what is going on here 😉 "}}
{"actor":{"display_login":"Benjamin-Dobell"}}