问题描述: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
4 个回复
实用码农 - 只做实用用得上的代码
请问解决了吗
ShenJ
请问解决了吗
c***@163.com
安装一个core2.的版本不就完事了
小栈
cnpm install core-js@2