1.npm install
2.删除node_modules\babel-runtime\helpers\classCallCheck.js 的抛出异常的代码
// node_modules\babel-runtime\helpers\classCallCheck.js
"use strict";
exports.__esModule = true;
exports.default = function (instance, Constructor) {
if (!(instance instanceof Constructor)) {
// 不然打包报错
// throw new TypeError("Cannot call a class as a function");
}
};
npm start
npm run build