webpack Cannot destructure property compile of 'undefined' or 'null'2022年1月12日 · 1分钟阅读问题Cannot destructure property compile of ‘undefined’ or ‘null’.原因由于 webpack 版本与 webpack-dev-server 版本不对应导致的解决更新成一致版本即可webpack 版本 4.x(3.x) 版本需要 webpack-dev-server 3.x(2.x) 版本