1***@qq.com
1***@qq.com
  • 发布:2021-01-13 11:13
  • 更新:2022-02-23 02:12
  • 阅读:2916

使用 cli 生成的uni-app 项目中引入 ant-design-vue 出现不兼容问题

分类:uni-app

问题描述:ant-design-vue 1.7.2 使用的 babel-runtime 6. 调用的是core.js 2.的方法,但cli生成的项目默认core.js为3.*

报错
These dependencies were not found:

  • core-js/library/fn/array/from in ./node_modules/babel-runtime/core-js/array/from.js
  • core-js/library/fn/get-iterator in ./node_modules/babel-runtime/core-js/get-iterator.js
  • core-js/library/fn/is-iterable in ./node_modules/babel-runtime/core-js/is-iterable.js
  • core-js/library/fn/object/assign in ./node_modules/babel-runtime/core-js/object/assign.js
  • core-js/library/fn/object/define-property in ./node_modules/babel-runtime/core-js/object/define-property.js
  • core-js/library/fn/symbol in ./node_modules/babel-runtime/core-js/symbol.js
  • core-js/library/fn/symbol/iterator in ./node_modules/babel-runtime/core-js/symbol/iterator.js
2021-01-13 11:13 负责人:无 分享
已邀请:
实用码农

实用码农 - 只做实用用得上的代码

请问解决了吗

ShenJ

ShenJ

请问解决了吗

c***@163.com

c***@163.com

安装一个core2.的版本不就完事了

小栈

小栈

cnpm install core-js@2

该问题目前已经被锁定, 无法添加新回复