学习
https://fakefish.github.io/react-webpack-cookbook/Automatic-browser-refresh.html
碰到这个错误
Asset Size Chunks Chunk Names
bundle.js 26.8 kB 0 [emitted] mainchunk {0} bundle.js (main) 2.99 kB [rendered]
[0] multi main 52 bytes {0} [built] [1 error]
[1] ./~/webpack/hot/dev-server.js 1.85 kB {0} [built]
[2] ./~/webpack/hot/log-apply-result.js 813 bytes {0} [built]
[3] ./app/main.js 102 bytes {0} [built]
[4] ./app/component.js 167 bytes {0} [built]
ERROR in multi main
Module not found: Error: Cannot resolve module 'webpack-dev-server/client' in D:\react
@ multi main
webpack: bundle is now VALID.
entry: ['webpack/hot/dev-server', 'webpack-dev-server/client?http://localhost:8080',path.resolve(__dirname, 'app/main.js') ],
删除就好了,找了很长时间 ,不知道为什么