使用vue-form-generator

孟承嗣
2023-12-01
1. npm i vue-form-generator  安装成功 

2.引用
import VueFormGenerator from "vue-form-generator";
import "vue-form-generator/dist/vfg.css";  // optional full css additions

引用之后就报错 项目跑不起来
@babel core-js

我的package.js  默认装了个core-js 是最新的3.9 版本
  "dependencies": {
    "@form-create/element-ui": "^2.5.0-alpha.5",
    "axios": "^0.21.0",
    "core-js": "3.9.1",
    "echarts": "^4.0.4",
    "element-ui": "^2.15.1",
    "jquery": "^3.5.1",
    "js-cookie": "^2.2.1",
    "vue": "^2.6.11",
    "vue-form-generator": "^2.3.4",
    "vue-quill-editor": "^3.0.6",
    "vue-router": "^3.2.0",
    "vuex": "^3.4.0"
  },

最后尝试 改版本
yarn add core-js@3
 
降完版本之后 就能跑起来了

 npm install --save core-js@2    npm install --save core-js@3
  yarn add core-js@2              yarn add core-js@3
 类似资料: