{"action":"created","issue":{"url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/1240","repository_url":"https://api.github.com/repos/facebookincubator/create-react-app","labels_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/1240/labels{/name}","comments_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/1240/comments","events_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/1240/events","html_url":"https://github.com/facebookincubator/create-react-app/issues/1240","id":194830389,"number":1240,"title":"Using react-scripts from parent folder results in strange behaviour","user":{"login":"ashtonwar","id":6740947,"avatar_url":"https://avatars.githubusercontent.com/u/6740947?v=3","gravatar_id":"","url":"https://api.github.com/users/ashtonwar","html_url":"https://github.com/ashtonwar","followers_url":"https://api.github.com/users/ashtonwar/followers","following_url":"https://api.github.com/users/ashtonwar/following{/other_user}","gists_url":"https://api.github.com/users/ashtonwar/gists{/gist_id}","starred_url":"https://api.github.com/users/ashtonwar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashtonwar/subscriptions","organizations_url":"https://api.github.com/users/ashtonwar/orgs","repos_url":"https://api.github.com/users/ashtonwar/repos","events_url":"https://api.github.com/users/ashtonwar/events{/privacy}","received_events_url":"https://api.github.com/users/ashtonwar/received_events","type":"User","site_admin":false},"labels":[{"id":409578974,"url":"https://api.github.com/repos/facebookincubator/create-react-app/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/facebookincubator/create-react-app/milestones/18","html_url":"https://github.com/facebookincubator/create-react-app/milestone/18","labels_url":"https://api.github.com/repos/facebookincubator/create-react-app/milestones/18/labels","id":2146747,"number":18,"title":"0.9.0","description":"","creator":{"login":"gaearon","id":810438,"avatar_url":"https://avatars.githubusercontent.com/u/810438?v=3","gravatar_id":"","url":"https://api.github.com/users/gaearon","html_url":"https://github.com/gaearon","followers_url":"https://api.github.com/users/gaearon/followers","following_url":"https://api.github.com/users/gaearon/following{/other_user}","gists_url":"https://api.github.com/users/gaearon/gists{/gist_id}","starred_url":"https://api.github.com/users/gaearon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaearon/subscriptions","organizations_url":"https://api.github.com/users/gaearon/orgs","repos_url":"https://api.github.com/users/gaearon/repos","events_url":"https://api.github.com/users/gaearon/events{/privacy}","received_events_url":"https://api.github.com/users/gaearon/received_events","type":"User","site_admin":false},"open_issues":16,"closed_issues":12,"state":"open","created_at":"2016-11-20T17:56:05Z","updated_at":"2016-12-23T20:09:39Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-12-11T12:53:41Z","updated_at":"2016-12-29T23:38:16Z","closed_at":null,"body":"### Background\r\n\r\nI'm building a library with several examples, these examples use create-react-app but I don't want people to waste lots of time by repeatedly installing react-scripts. So I moved the react-scripts dependency to the project root.\r\n\r\n### Steps to reproduce\r\n\r\nRun the following inside an empty folder:\r\n\r\n```sh\r\nnpm install -g create-react-app@1.0.2\r\nnpm install --save react@15.4.0 react-dom@15.4.0\r\nnpm install --save-dev react-scripts@0.8.3\r\nmkdir examples\r\ncd examples\r\ncreate-react-app counter\r\ncd counter\r\nnpm uninstall --save react react-dom\r\nnpm uninstall --save-dev react-scripts\r\nnpm start\r\n```\r\n\r\nNavigate to localhost:3000 and you might see something like:\r\n\r\n![issue](https://cloud.githubusercontent.com/assets/6740947/21080087/ed9f67ca-bf9d-11e6-8ed5-9195de57acc2.png)\r\n\r\nWhich can be fixed by moving `examples/counter/public/index.html` to `examples/counter/index.html` (though some additional errors are reported in the console like `URIError: Failed to decode param '/%PUBLIC_URL%/favicon.ico'`).\r\n\r\nThis seems like behavior from an older version of `react-scripts` but I'm not sure.\r\n\r\n### Environment\r\n\r\n```sh\r\nnode -v # 6.2.0\r\nnpm -v  # 3.10.5\r\n# Windows 7\r\n# Chrome 54\r\n```"},"comment":{"url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/comments/269710571","html_url":"https://github.com/facebookincubator/create-react-app/issues/1240#issuecomment-269710571","issue_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/1240","id":269710571,"user":{"login":"ashtonwar","id":6740947,"avatar_url":"https://avatars.githubusercontent.com/u/6740947?v=3","gravatar_id":"","url":"https://api.github.com/users/ashtonwar","html_url":"https://github.com/ashtonwar","followers_url":"https://api.github.com/users/ashtonwar/followers","following_url":"https://api.github.com/users/ashtonwar/following{/other_user}","gists_url":"https://api.github.com/users/ashtonwar/gists{/gist_id}","starred_url":"https://api.github.com/users/ashtonwar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashtonwar/subscriptions","organizations_url":"https://api.github.com/users/ashtonwar/orgs","repos_url":"https://api.github.com/users/ashtonwar/repos","events_url":"https://api.github.com/users/ashtonwar/events{/privacy}","received_events_url":"https://api.github.com/users/ashtonwar/received_events","type":"User","site_admin":false},"created_at":"2016-12-29T23:38:16Z","updated_at":"2016-12-29T23:38:16Z","body":"Just tried that, in this context `process.cwd()` & `__dirname` are equal thus the change has no effect.\r\n\r\nI've found switching from npm to yarn significantly improves installation times making the original solution is no longer necessary ie, this issue no longer affects me. The issue remains but I'm not personally inclined to find a fix for it now. But thanks for the help (& sorry I took ages to respond)!"}}
{"actor":{"display_login":"ashtonwar"}}