zoukankan      html  css  js  c++  java
  • 解决 These dependencies were not found: * core-js/modules/es6.array.fill in xxx 之类的问题

    项目打包时出现了这种问题,说是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.js
    
    To 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............

    总之就是让你安装与core-js相关的东西。

    解决方法:

    在babel.config.js中添加:

    presets: [ [ "@vue/app", { useBuiltIns: "entry" } ] ]

    简单解决

  • 相关阅读:
    结对第二次作业——某次疫情统计可视化的实现
    结对作业(1)--疫情统计可视化(原型设计)
    软工实践寒假作业(2/2)
    软工实践寒假作业(1/2)
    Prometheus监控docker容器(三)
    Prometheus数据持久化存储(二)
    HTTPS SSL证书在线生成
    从零搭建Prometheus监控报警系统(一)
    Ubuntu 16.04 误删内核后的系统恢复
    通过URL触发Jenkins构建
  • 原文地址:https://www.cnblogs.com/apex-wzw/p/12650108.html
Copyright © 2011-2022 走看看