{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/14246","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/14246/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/14246/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/14246/events","html_url":"https://github.com/facebook/react-native/issues/14246","id":232087732,"number":14246,"title":"Cannot find entry file (Android and iOS)","user":{"login":"MyTotoro","id":3621921,"avatar_url":"https://avatars2.githubusercontent.com/u/3621921?v=3","gravatar_id":"","url":"https://api.github.com/users/MyTotoro","html_url":"https://github.com/MyTotoro","followers_url":"https://api.github.com/users/MyTotoro/followers","following_url":"https://api.github.com/users/MyTotoro/following{/other_user}","gists_url":"https://api.github.com/users/MyTotoro/gists{/gist_id}","starred_url":"https://api.github.com/users/MyTotoro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MyTotoro/subscriptions","organizations_url":"https://api.github.com/users/MyTotoro/orgs","repos_url":"https://api.github.com/users/MyTotoro/repos","events_url":"https://api.github.com/users/MyTotoro/events{/privacy}","received_events_url":"https://api.github.com/users/MyTotoro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-05-29T19:47:36Z","updated_at":"2017-05-30T20:58:44Z","closed_at":null,"body":"### Description\r\n\r\nRecently upgrade to RN 0.45 from 0.42 (I was hit with  #14225 and I figured I might as well spend the time migrating) \r\n\r\nError in Bundler:\r\n\r\n```\r\nerror: bundling: Error\r\n    at DependencyGraph._getAbsolutePath (/Users/mytotoro/Desktop/app/node_modules/react-native/packager/src/node-haste/DependencyGraph.js:280:11)\r\n    at DependencyGraph.getDependencies (/Users/mytotoro/Desktop/app/node_modules/react-native/packager/src/node-haste/DependencyGraph.js:218:26)\r\n    at Resolver.getDependencies (/Users/mytotoro/Desktop/app/node_modules/react-native/packager/src/Resolver/index.js:107:27)\r\n    at /Users/mytotoro/Desktop/app/node_modules/react-native/packager/src/Bundler/index.js:591:37\r\n    at Generator.next (<anonymous>)\r\n    at step (/Users/mytotoro/Desktop/app/node_modules/react-native/packager/src/Bundler/index.js:12:445)\r\n    at /Users/mytotoro/Desktop/app/node_modules/react-native/packager/src/Bundler/index.js:12:605\r\n    at process._tickCallback (internal/process/next_tick.js:109:7)\r\nBundling `index.android.js`  0.0% (0/1), failed.\r\n```\r\nand red screen showing\r\n\r\n`Response error 404, Cannot find entry file index.android.js in any of the roots: [\\\"/Users/mytotoro/desktop/app/node_modules/react-native/packager\\\"]`\r\n\r\nWith NotFoundError\r\n\r\n```\r\nLooking for JS files in\r\n   /Users/mytotoro/Desktop/app/node_modules/react-native/packager \r\n\r\n\r\nReact packager ready.\r\n```\r\n\r\n### Reproduction Steps and Sample Code\r\n\r\n```\r\n\"react\": \"^16.0.0-alpha.12\",\r\n\"react-native\": \"^0.45.0-rc.2\",\r\n\r\nMac: 10.12.4\r\nnode: v7.10.0\r\nnpm: 4.6.1\r\n```\r\n\r\nI run `react-native run-android` from the root directory of my project as I have always been doing:\r\n\r\n```\r\ntotal 456\r\n-rw-r--r--    1 mytotoro  staff     175 Apr  7 23:36 index.ios.js\r\n-rw-r--r--    1 mytotoro  staff     175 Apr  7 23:36 index.android.js\r\ndrwxr-xr-x    7 mytotoro  staff     238 Apr  7 23:36 Tests\r\n-rw-r--r--    1 mytotoro  staff    2113 Apr  7 23:36 README.md\r\ndrwxr-xr-x    6 mytotoro  staff     204 Apr  7 23:37 ignite\r\ndrwxr-xr-x   15 mytotoro  staff     510 Apr  7 23:38 App\r\n-rw-r--r--    1 mytotoro  staff  216323 Apr  7 23:39 yarn.lock\r\ndrwxr-xr-x   15 mytotoro  staff     510 May 29 13:42 android\r\n-rw-r--r--    1 mytotoro  staff    3888 May 29 14:18 package.json\r\n```\r\n\r\nThis issue comes up for iOS as well (I run on device through xcode) but the offending file is index.ios.js\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/305006304","html_url":"https://github.com/facebook/react-native/issues/14246#issuecomment-305006304","issue_url":"https://api.github.com/repos/facebook/react-native/issues/14246","id":305006304,"user":{"login":"willdawsonme","id":4888378,"avatar_url":"https://avatars3.githubusercontent.com/u/4888378?v=3","gravatar_id":"","url":"https://api.github.com/users/willdawsonme","html_url":"https://github.com/willdawsonme","followers_url":"https://api.github.com/users/willdawsonme/followers","following_url":"https://api.github.com/users/willdawsonme/following{/other_user}","gists_url":"https://api.github.com/users/willdawsonme/gists{/gist_id}","starred_url":"https://api.github.com/users/willdawsonme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willdawsonme/subscriptions","organizations_url":"https://api.github.com/users/willdawsonme/orgs","repos_url":"https://api.github.com/users/willdawsonme/repos","events_url":"https://api.github.com/users/willdawsonme/events{/privacy}","received_events_url":"https://api.github.com/users/willdawsonme/received_events","type":"User","site_admin":false},"created_at":"2017-05-30T20:58:44Z","updated_at":"2017-05-30T20:58:44Z","body":"You should only need to run this once after an upgrade. The 'run-android' step essentially runs npm start if there are no packagers already running, so there's no harm starting them separately once. You might be able to pass a reset cache flag to run-android, but I've not tried it.\n\n> On 30 May 2017, at 12:38 pm, MyTotoro <notifications@github.com> wrote:\n> \n> @willdawsonme this does fix it, is there a way to make the fix more permanent (Normally, when I ran `react-native run-android, a new terminal window would pop up)\n> \n> —\n> You are receiving this because you were mentioned.\n> Reply to this email directly, view it on GitHub, or mute the thread.\n> \n"}}
{"actor":{"display_login":"willdawsonme"}}