vue these dependencies were not found: * core-尊龙游戏旗舰厅官网
尊龙游戏旗舰厅官网
收集整理的这篇文章主要介绍了
vue these dependencies were not found: * core-js/modules/es.array.iterator in ./node_modules/@babe
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
项目打包时出现了这种问题,是一个叫core-js的包出了问题;
these dependencies were not found:* core-js/fn/array/flat-map in ./node_modules/@babel/polyfill/lib/noconflict.js * core-js/fn/promise/finally in ./node_modules/@babel/polyfill/lib/noconflict.js * core-js/fn/string/pad-end in ./node_modules/@babel/polyfill/lib/noconflict.js * core-js/fn/string/pad-start in ./node_modules/@babel/polyfill/lib/noconflict.js * core-js/fn/string/trim-end in ./node_modules/@babel/polyfill/lib/noconflict.js * core-js/fn/string/trim-start in ./node_modules/@babel/polyfill/lib/noconflict.js * core-js/fn/symbol/async-iterator in ./node_modules/@babel/polyfill/lib/noconflict.js * core-js/library/fn/array/is-array in ./node_modules/@babel/runtime-corejs2/core-js/array/is-array.js * core-js/library/fn/global in ./node_modules/@babel/polyfill/lib/index.js * core-js/library/fn/parse-float in ./node_modules/@babel/runtime-corejs2/core-js/parse-float.js * core-js/library/fn/parse-int in ./node_modules/@babel/runtime-corejs2/core-js/parse-int.jsto install them, you can run: npm install --save core-js/fn/array/flat-map core-js/fn/promise/finally core-js/fn/string/pad-end core-js/fn/string/pad-start core-js/fn/string/trim-end core-js/fn/string/trim-start core-js/fn/symbol/async-iterator core-js/library/fn/array/is-array core-js/library/fn/global core-js/library/fn/parse-float core-js/library/fn/parse-int ℹ 「hot」: webpack: compiling done解决方法是
1.是版本的问题,要重新install一下
2.也有人给出了这种方法:(我用这种方法还是出现了些问题,如果上面那种方式没有解决你的问题,你可以再试试这种方式;或者两种方式都用,未尝不可。)
//在babel.config.js中添加presets: [ [ "@vue/app", { usebuiltins: "entry" } ] ]详情参考这里:
usebuiltins
core-js module error
接下来:
你可能出现过这种问题,没有直接忽视;
你看可以重新 install 一下找不到的那个插件();或者直接npm install 全部重新安装一下。因为我看到package.json中是有这些模块的,安装cli的时候他是已经安装好了的,不知道为什么,现在找不到了。重新npm install 一下就好了。
总结
以上是尊龙游戏旗舰厅官网为你收集整理的vue these dependencies were not found: * core-js/modules/es.array.iterator in ./node_modules/@babe的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: vue 封装返回顶部组件
- 下一篇: