{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/395","repository_url":"https://api.github.com/repos/webpack/webpack-dev-server","labels_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/395/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/395/comments","events_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/395/events","html_url":"https://github.com/webpack/webpack-dev-server/issues/395","id":130511515,"number":395,"title":"Hot reload module failed :  Cannot apply update. Need to do a full reload!","user":{"login":"iroy2000","id":487520,"avatar_url":"https://avatars.githubusercontent.com/u/487520?v=3","gravatar_id":"","url":"https://api.github.com/users/iroy2000","html_url":"https://github.com/iroy2000","followers_url":"https://api.github.com/users/iroy2000/followers","following_url":"https://api.github.com/users/iroy2000/following{/other_user}","gists_url":"https://api.github.com/users/iroy2000/gists{/gist_id}","starred_url":"https://api.github.com/users/iroy2000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iroy2000/subscriptions","organizations_url":"https://api.github.com/users/iroy2000/orgs","repos_url":"https://api.github.com/users/iroy2000/repos","events_url":"https://api.github.com/users/iroy2000/events{/privacy}","received_events_url":"https://api.github.com/users/iroy2000/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-02-01T22:56:06Z","updated_at":"2016-03-18T23:55:04Z","closed_at":"2016-03-18T23:55:03Z","body":"I was trying to debug why the HMR do full page reload everytime ... \r\n\r\n`[HMR] Cannot apply update. Need to do a full reload!`\r\n\r\n<img width=\"604\" alt=\"screen shot 2016-02-28 at 3 56 22 pm\" src=\"https://cloud.githubusercontent.com/assets/487520/13382898/2678a0e4-de34-11e5-8986-91776eb2680f.png\">\r\n\r\nAnd I tried to look into the module `286` and I don't know why it is not accepted ...\r\n\r\n<img width=\"1148\" alt=\"screen shot 2016-02-28 at 3 56 11 pm\" src=\"https://cloud.githubusercontent.com/assets/487520/13382900/2ed1150a-de34-11e5-9cd7-1361583b987e.png\">\r\n\r\n`... And I start doing some tracing ...`   ( **Not sure if the following is useful information or not** )\r\n\r\nI found `parent.hot._acceptedDependencies` has nothing in it\r\n\r\n![screen shot 2016-02-01 at 12 31 34 pm](https://cloud.githubusercontent.com/assets/487520/12730809/846fa826-c8e2-11e5-8441-fedd295136d6.png)\r\n\r\n![screen shot 2016-02-01 at 2 38 10 pm](https://cloud.githubusercontent.com/assets/487520/12733761/7ac366b4-c8f1-11e5-88c2-7dcf3f14cfbd.png)\r\n\r\n\r\nAnd my webpack config is very common, and I used the CLI\r\n\r\n__CLI:__ \r\n`webpack-dev-server --hot --progress --colors --inline --content-base ./docroot`\r\n\r\n__webpack config:__\r\n```\r\noutput: {\r\n        path: path.join(__dirname, \"docroot\"),\r\n        filename: (IS_PRODUCTION ? \"assets/[hash].js\" : \"assets/bundle.js\"),\r\n        publicPath: \"/\"\r\n    },\r\n```\r\n.\r\n.\r\n.\r\n\r\n```\r\nentry = [\r\n        \"webpack-dev-server/client?http://localhost:8080\",\r\n        './'+APP_ENTRY_POINT\r\n    ];\r\n```\r\n\r\n\r\nAny help will be appreciated, thanks. \r\n\r\n---\r\n\r\nAccording to the documentation  -- __Hot Module Replacement with Inline mode on CLI__\r\n\r\nNothing more is needed. --inline --hot does all the relevant work automatically. The CLI of the webpack-dev-server automatically adds the special webpack/hot/dev-server entry point to your configuration. #"},"comment":{"url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/comments/198586766","html_url":"https://github.com/webpack/webpack-dev-server/issues/395#issuecomment-198586766","issue_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/395","id":198586766,"user":{"login":"iroy2000","id":487520,"avatar_url":"https://avatars.githubusercontent.com/u/487520?v=3","gravatar_id":"","url":"https://api.github.com/users/iroy2000","html_url":"https://github.com/iroy2000","followers_url":"https://api.github.com/users/iroy2000/followers","following_url":"https://api.github.com/users/iroy2000/following{/other_user}","gists_url":"https://api.github.com/users/iroy2000/gists{/gist_id}","starred_url":"https://api.github.com/users/iroy2000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iroy2000/subscriptions","organizations_url":"https://api.github.com/users/iroy2000/orgs","repos_url":"https://api.github.com/users/iroy2000/repos","events_url":"https://api.github.com/users/iroy2000/events{/privacy}","received_events_url":"https://api.github.com/users/iroy2000/received_events","type":"User","site_admin":false},"created_at":"2016-03-18T23:55:03Z","updated_at":"2016-03-18T23:55:03Z","body":"I'm managed to fix the issues I have. Please note that I'm using `vagrant`, so it might be different for your case. \r\n\r\nThe following steps are what I changed\r\n1) I replace my publicPath to be ` (IS_PRODUCTION ? \"/\" : \"http://localhost:8080/\")`\r\n2) I replace the `react-hot-loader` with `react-transform-hmr `\r\n\r\nHope it helps :)"}}