vue These dependencies were not found: * core-js/modules/es.array.iterator in ./node_modules/@babe
生活随笔
收集整理的這篇文章主要介紹了
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 封装返回顶部组件
- 下一篇: 深圳证券交易所成立时间 中小企业板块也包