Encounter Can not read property 'compilation' of undefined problem solving method when packing vue project build

TypeError: Cannot read property ‘compilation’ of undefined 错误。

(It should emphasize the use of the installation environment must -save-dev or -save, or tears ah)

Obviously, this is the version number of the package corresponding node is not on the issue. . .

View package.jsonn in the webpack version number found in version 3.6.0, but optimize-css-assets-webpack-plugin version is 2.0.

Solution:

npm install [email protected] will timize-css-assets-webpack-plugin version replaced

Guess you like

Origin www.cnblogs.com/wxiaoq/p/11898978.html