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去掉就好