TypeError: Class extends value undefined is not a constructor or null

Posted 一路追寻

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了TypeError: Class extends value undefined is not a constructor or null相关的知识,希望对你有一定的参考价值。

$ 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> (/root/deploy/ui/node_modules/mini-css-extract-plugin/dist/CssDependency.js:12:46)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/root/deploy/ui/node_modules/mini-css-extract-plugin/dist/index.js:12:45)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)

mini-css-extract-plugin requires webpack >= 4.1.0


npm install webpack -g // 全局安装
npm install webpack --save-dev // 项目内安装
或者
npm add webpack@latest --registry=https://registry.npm.taobao.org

以上是关于TypeError: Class extends value undefined is not a constructor or null的主要内容,如果未能解决你的问题,请参考以下文章

TypeError: Class extends value #<Object> is not a constructor or null in react js

TypeError:使用flask_jwt_extended int RESTful API时类型函数的对象不是JSON可序列化的

flask-jwt-extended TypeError:“函数”类型的对象不是 JSON 可序列化的

关于〈? extends Class 〉和〈T extends Class〉的区别

Class<? extends OrderChargeEditParam; editParam

未捕获的 TypeError:Object(...)(...).Class 不是函数