赞
踩
These dependencies were not found:
* core-js/modules/es.array.concat.js in ./src/api/acl/role.js, ./src/api/product/attr.js and 3 others
* core-js/modules/es.array.filter.js in ./node_modules/_@babel_runtime@7.17.2@@babel/runtime/helpers/esm/objectSpread2.js
已解决:在babel.config.js中添加presets: [ [ "@vue/app", { useBuiltIns: "entry" } ] ]
如下图所在位置
- * module.exports = {
- * presets: [
- * // https://github.com/vuejs/vue-cli/tree/master/packages/@vue/babel-preset-app
- * '@vue/cli-plugin-babel/preset'
- * ],
- * 'env': {
- * 'development': {
- * // babel-plugin-dynamic-import-node plugin only does one thing by converting all import() to require().
- * // This plugin can significantly increase the speed of hot updates, when you have a large number of pages.
- * // https://panjiachen.github.io/vue-element-admin-site/guide/advanced/lazy-loading.html
- * 'plugins': ['dynamic-import-node']
- * }
- * },
- * presets: [ [ "@vue/app", { useBuiltIns: "entry" } ] ]
- * }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。