webpack热启动报错 Maximum call stack size exceeded

问题:
Uncaught RangeError: Maximum call stack size exceeded
    at hotAddUpdateChunk (bootstrap 27fb73d…:828)
    at webpackHotUpdateCallback (bootstrap 27fb73d…:27)
    at webpackHotUpdateCallback (bootstrap 27fb73d…:28)
    at webpackHotUpdateCallback (bootstrap 27fb73d…:28)
    at webpackHotUpdateCallback (bootstrap 27fb73d…:28)
    at webpackHotUpdateCallback (bootstrap 27fb73d…:28)
    at webpackHotUpdateCallback (bootstrap 27fb73d…:28)
    at webpackHotUpdateCallback (bootstrap 27fb73d…:28)
    at webpackHotUpdateCallback (bootstrap 27fb73d…:28)
    at webpackHotUpdateCallback (bootstrap 27fb73d…:28

  

解决方案:在package.json里的script里使用了--hot和在webpack.config.js里调用了HotModuleReplacementPlugin,最后把webpack.config.js里的HotModuleReplacementPlugin去掉就好

posted @ 2017-10-11 15:35  李元夕cool  阅读(5478)  评论(0编辑  收藏  举报