摘要 坑位: 千万不要webpack.config.js 加了HotModuleReplacementPlugin , web-dev-server 也加hot:true 配置, 会出现莫名的错误, 我这里出现的是 xx.ts -> index.js -> 0 is not accept 的错误 This adds the HotModuleReplacementPlugin. Make sure to use either the --hot flag, or the HotModuleRe…