React+Redux 学习

来源:互联网 发布:软件的数学模型 编辑:程序博客网 时间:2024/06/06 07:00

 学习

https://fakefish.github.io/react-webpack-cookbook/Automatic-browser-refresh.html


1.3. 浏览器自动刷新

碰到这个错误

   Asset     Size  Chunks             Chunk Names

bundle.js  26.8 kB       0  [emitted]  main
chunk    {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')],

删除就好了,找了很长时间 ,不知道为什么

0 0
原创粉丝点击