试了master分支,2.0.1到2.1.3各个tag。npm install 没有问题。npm run serve 也没问题。
执行 npm run build 就会报错:
⠋ Building for production... ERROR TypeError: Class extends value undefined is not a constructor or null
TypeError: Class extends value undefined is not a constructor or null
at Object.<anonymous> (/root/test/jeecg/node_modules/mini-css-extract-plugin/dist/CssDependency.js:12:46)
……
……
[root@xxxxx test]# node -v
v12.16.1
[root@xxxxx test]# npm -v
6.13.4
[root@xxxxx test]#git clone --branch v2.1.3 https://github.com/zhangdaiscott/jeecg-boot.git
[root@xxxxx test]#cd jeecg-boot/ant-design-jeecg-vue
[root@xxxxx ant-design-jeecg-vue]npm install
....(略,成功)
[root@xxxxx ant-design-jeecg-vue]npm run build
...
> vue-antd-jeecg@2.0.1 build /Users/liruifan/log/test/jeecg-boot/ant-design-jeecg-vue
> vue-cli-service build
⠋ Building for production... ERROR TypeError: Class extends value undefined is not a constructor or null
TypeError: Class extends value undefined is not a constructor or null
at Object.<anonymous> (/Users/liruifan/log/test/jeecg-boot/ant-design-jeecg-vue/node_modules/mini-css-extract-plugin/dist/CssDependency.js:12:46)