一、问题描述
执行 npm run build:prod
ERROR TypeError: Class extends value undefined is not a constructor or null
TypeError: Class extends value undefined is not a constructor or null
执行num run build:prod 报错,但是npm run dev没问题
二、解决
TypeError: Class extends value undefined is not a constructor or null at Object. (C:\Users\司超龙\IdeaProjects\vue\base_education_vue\base_education_third_3.0+\grass-roots teaching system\node_modules\mini-css-extract-plugin\dist\CssDependency.js:12:46)
CssDependency的问题,依赖包不兼容
执行npm add webpack@4.5.0,解决
三、项目内安装webpack
npm install webpack --save-dev