{"action":"created","issue":{"url":"https://api.github.com/repos/SteamerTeam/steamer-react/issues/11","repository_url":"https://api.github.com/repos/SteamerTeam/steamer-react","labels_url":"https://api.github.com/repos/SteamerTeam/steamer-react/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/SteamerTeam/steamer-react/issues/11/comments","events_url":"https://api.github.com/repos/SteamerTeam/steamer-react/issues/11/events","html_url":"https://github.com/SteamerTeam/steamer-react/issues/11","id":191449984,"number":11,"title":"Cannot resolve 'file' or 'directory' react/lib/ReactMount","user":{"login":"pfncfen","id":3774176,"avatar_url":"https://avatars.githubusercontent.com/u/3774176?v=3","gravatar_id":"","url":"https://api.github.com/users/pfncfen","html_url":"https://github.com/pfncfen","followers_url":"https://api.github.com/users/pfncfen/followers","following_url":"https://api.github.com/users/pfncfen/following{/other_user}","gists_url":"https://api.github.com/users/pfncfen/gists{/gist_id}","starred_url":"https://api.github.com/users/pfncfen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfncfen/subscriptions","organizations_url":"https://api.github.com/users/pfncfen/orgs","repos_url":"https://api.github.com/users/pfncfen/repos","events_url":"https://api.github.com/users/pfncfen/events{/privacy}","received_events_url":"https://api.github.com/users/pfncfen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-24T07:26:48Z","updated_at":"2016-11-25T03:09:46Z","closed_at":null,"body":"After git cloning your repo, I tried npm run dev. Below is the result:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/3774176/20589809/c476fb2a-b259-11e6-906e-ddaad4a7d49e.png)\r\n\r\nI've searched github and I found this\r\nhttps://github.com/gaearon/react-hot-loader/blob/master/docs/Troubleshooting.md\r\n\r\n> Cannot resolve 'file' or 'directory' react/lib/ReactMount\r\n> \r\n> If you're using a precompiled React instead of react npm package, React Hot Loader configuration will need a few tweaks. See Usage with External React.\r\n> \r\n> Make sure you have '.js' in resolve.extensions section of Webpack config, or Webpack won't be able to find any JS files without explicitly specifying extension in require.\r\n\r\nAccording to this, I deleted the react-hot-loader related code in the webpack.dev.js and the whole thing started to functioning again. However I had to give up react-hot-loader which is very useful in my development.\r\n\r\nI was thinking that is it because the version of react-hot-loader is out of date so that some function is depracated and the whole thing just crashed down?\r\nIf u know the answer, please reply ASAP. Thx."},"comment":{"url":"https://api.github.com/repos/SteamerTeam/steamer-react/issues/comments/262872624","html_url":"https://github.com/SteamerTeam/steamer-react/issues/11#issuecomment-262872624","issue_url":"https://api.github.com/repos/SteamerTeam/steamer-react/issues/11","id":262872624,"user":{"login":"pfncfen","id":3774176,"avatar_url":"https://avatars.githubusercontent.com/u/3774176?v=3","gravatar_id":"","url":"https://api.github.com/users/pfncfen","html_url":"https://github.com/pfncfen","followers_url":"https://api.github.com/users/pfncfen/followers","following_url":"https://api.github.com/users/pfncfen/following{/other_user}","gists_url":"https://api.github.com/users/pfncfen/gists{/gist_id}","starred_url":"https://api.github.com/users/pfncfen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfncfen/subscriptions","organizations_url":"https://api.github.com/users/pfncfen/orgs","repos_url":"https://api.github.com/users/pfncfen/repos","events_url":"https://api.github.com/users/pfncfen/events{/privacy}","received_events_url":"https://api.github.com/users/pfncfen/received_events","type":"User","site_admin":false},"created_at":"2016-11-25T03:09:46Z","updated_at":"2016-11-25T03:09:46Z","body":"Hi @lcxfs1991. Thank u for ur reply. The answer to this question simply lies in my reference \r\nhttps://github.com/gaearon/react-hot-loader/issues/417\r\n\r\n> Adding alias: { 'react/lib/ReactMount': 'react-dom/lib/ReactMount' } to your webpack config fixes this for now. \r\n\r\nI've tried this, and it worked out. But the author of React-Hot-Loader strongly advised us to upgrade from v1.3.0 to v3.x so maybe it's time to take a look into this.\r\n"}}
{"actor":{"display_login":"pfncfen"}}