vue These dependencies were not found: * core-js/modules/es.array.iterator in ./node_modules/@babe

Vue坑点杂谈(六)This dependency was not found: * core-js/fn/array in ./src/main.js或./src/router/index.js Vue坑点杂谈(六)This dependency was not found: * core-js/fn/array in ./src/main.js或./src/router/index.js依赖报错 一、写在开头 花了一下午的时间查阅了数十篇相关的文档,终究不能如意,最终靠着vue ui和对代码以及报错的再分析才解决问题。特意写下帮助各位避免踩坑!! 二、发现问题 开发时用的是vue-cli 4.X生成的项目,vue版本在2.6.x,需要引入core-js包,但是报了两个错: 1.This depen 阅读详情


项目打包时出现了这种问题,是一个叫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
ℹ 「hot」: webpack: Compiling Done

解决方法是
1.是版本的问题,要重新install一下

npm install core-js@3 --save

# or

npm install core-js@2 --save


2.也有人给出了这种方法:(我用这种方法还是出现了些问题,如果上面那种方式没有解决你的问题,你可以再试试这种方式;或者两种方式都用,未尝不可。)

//在babel.config.js中添加

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


详情参考这里:
useBuiltIns
core-js module error
接下来:
你可能出现过这种问题,没有直接忽视;


 ERROR  Failed to compile with 17 errors                                                                                                                   16:27:36
 error  in ./node_modules/vant/es/nav-bar/index.css

Module build failed (from ./node_modules/postcss-loader/src/index.js):
Error: Loading PostCSS Plugin failed: Cannot find module 'postcss-pxtorem'

(@C:\Users\1234Wu\Desktop\eMeetUser\emeet_usermanual\.postcssrc.js)
    at load (C:\Users\1234Wu\Desktop\eMeetUser\emeet_usermanual\node_modules\postcss-load-config\src\plugins.js:28:11)
    at Object.keys.filter.map (C:\Users\1234Wu\Desktop\eMeetUser\emeet_usermanual\node_modules\postcss-load-config\src\plugins.js:53:16)
    at Array.map (<anonymous>)
    at plugins (C:\Users\1234Wu\Desktop\eMeetUser\emeet_usermanual\node_modules\postcss-load-config\src\plugins.js:52:8)
    at processResult (C:\Users\1234Wu\Desktop\eMeetUser\emeet_usermanual\node_modules\postcss-load-config\src\index.js:33:14)
    at config.search.then (C:\Users\1234Wu\Desktop\eMeetUser\emeet_usermanual\node_modules\postcss-load-config\src\index.js:94:14)

 @ ./node_modules/vant/es/nav-bar/index.css 4:14-143 14:3-18:5 15:22-151
 @ ./node_modules/vant/es/nav-bar/style/index.js
 @ ./src/main.ts
 @ multi (webpack)-dev-server/client?http://192.168.1.5:80/sockjs-node (webpack)/hot/dev-server.js ./src/main.ts

 error  in ./src/App.vue?vue&type=style&index=0&lang=less&

Module build failed (from ./node_modules/postcss-loader/src/index.js):
Error: Loading PostCSS Plugin failed: Cannot find module 'postcss-pxtorem


.....后面还有很多。

你看可以重新 install 一下找不到的那个插件();或者直接npm install 全部重新安装一下。因为我看到package.json中是有这些模块的,安装cli的时候他是已经安装好了的,不知道为什么,现在找不到了。重新npm install 一下就好了。
————————————————
版权声明:本文为CSDN博主「1234Wu」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_42866164/article/details/104396339

前端开发:项目启动时报错These dependencies were not found的解决方法 在进行Vue项目启动的常规操作的时候,在终端里面运行 npm run serve 命令之后,不能正常启动项目,提示错误These dependencies were not found:等信息,那么就要根据错误提示来进行操作,具体错误提示如下所示: ERROR Failed to compile with 4 errors ...... 阅读详情

相关推荐

FPGA+滨淞CCD实战:手把手教你搭建S7031/S10142成像电路(附避坑指南)

本文详细介绍了使用FPGA驱动滨淞CCD传感器(S7031/S10142)构建高精度成像系统的完整实战流程。内容涵盖核心器件选型、系统架构规划、电路板(焦面板与接口板)设计要点、FPGA Verilog逻辑实现,并提供了从电源管理、信号调理到数据采集的详细避坑指南,帮助读者从零搭建稳定可靠的成像电路。

weixin_29271263的博客 237

Vue:项目启动时报错These dependencies were not found 解决办法

vue项目启动报错 These dependencies were not found

windyJ809的博客 3万+

【数学建模】 进化计算与群体智能

遗传算法(GA)是一种用于优化和搜索问题的启发式算法。它模拟了自然选择的过程,其中个体通过遗传和变异进行繁殖,逐渐进化出更优的解。基本步骤初始化:生成初始种群。适应度评估:评估种群中每个个体的适应度。选择:根据适应度选择个体进行繁殖。交叉:选定个体对进行基因交换,生成新的后代。变异:对一些个体进行基因变异,以增加多样性。迭代:重复评估和繁殖过程,直至达到停止条件。粒子群优化算法(PSO)是一种基于群体智能的优化算法,由Kennedy和Eberhart于1995年提出。其灵感来源于鸟群觅食的行为。

weixin_42914989的博客 1115

vue启动报错These dependencies were not found:

vue启动报错These dependencies were not found: 报错如下: 错误:是说出现问题的文件在 ./src/views/policyquery/PolicyInfo.vue 里,查找发现是引入的路径写的不对;纳入 下图是修改后的样子,之前引入路径时没有写根目录,要注意引入路径的写法。 ...

qq_38302155的博客 12万+

TPS25751 USB PD控制器设计实战:PPS、液滴检测与PCB布局指南

USB Power Delivery(PD)协议是现代电子设备实现高速充电与智能供电的核心技术标准,其核心在于通过Type-C接口进行精确的电压电流协商。其工作原理基于供电端与受电端通过CC线进行双向通信,动态调整供电参数。这项技术的核心价值在于实现了高效率、高功率的电源管理,显著提升了充电速度与设备兼容性,广泛应用于笔记本电脑、智能手机、平板电脑等消费电子及工业设备。在工程实践中,PPS(可编程电源)功能允许以精细步进动态调节电压电流,是实现高压直充、减少热损耗的关键。同时,为确保接口在复杂环境下的可靠性

weixin_29182481的博客 293

腾讯WeKnora开源了!手把手教你用Docker+Ollama本地部署多模态知识库(附避坑指南)

本文详细介绍了腾讯开源的多模态知识库工具WeKnora的本地部署方法,通过Docker和Ollama实现完全离线运行。文章包含环境准备、核心组件配置、Ollama模型集成、系统启动验证及高级性能调优等实战内容,特别适合需要构建私有化知识库的中小团队和个人开发者。

weixin_30664051的博客 488

These dependencies were not found解决办法

npm install --save core-js npm run serve

qq_40547717的博客 3万+

CAPL通过lookupSignal和DBLookup获取DBC信号的属性信息

CAPL通过lookupSignal和DBLookup获取DBC信号的属性信息以及一些相关问题

天赐好车的博客 2898

These dependencies were not found: swiper/swiper-bundle.css

These dependencies were not found: swiper/swiper-bundle.css

weixin_56749167的博客 2414

【ARM CoreLink 系列 7 -- TZC-400控制器简介】

为了确保内存能够正确识别总线的信号控制位,新增一个TrustZone地址空间控制器(TrustZone Address Space Controller,TZASC)组件来实现对内存地址的安全扩展,将内存区域划分为安全内存区域和非安全内存区域,安全世界可以访问安全内存和非安全内存,而普通世界只能访问非安全内存,如下图所示:图 1-1内存区域的划分是在系统启动时通过配置 TZASC 组件(TZC-400/TZC-380)来实现的。TZC-400由和使能情况;安全访问权限;Base地址;

CodingCos的博客 1636

【Tiny_CD】Tiny_CD变化检测网络详解(含python代码)

tiny-cd网络详解,含论文下载、代码下载地址。

向上生长的程序媛的博客 2167

These dependencies were not found:core-js/modules/es.object.to-string.js in ./src/router/index.js

These dependencies were not found:core-js/modules/es.object.to-string.js in ./src/router/index.js

m0_60622481的博客 2201

【WorkBuddy专栏36】从踩坑到上线——WorkBuddy代码开发避坑指南与部署完全手册

【WorkBuddy专栏36】从踩坑到上线——WorkBuddy代码开发避坑指南与部署完全手册

AI人人懂 1104

记录解决报错--These dependencies were not found jsencrypt lodash-es

①到相关目录下直接安装依赖,npm install --save jsencrypt lodash-es。我这里是没安装成功,原因是很多依赖冲突。(这一步就是报错的原因)②删除node_modules文件夹及里面的文件,然后在命令行里面重新安装依赖,npm install。idea打包vue,报错退出,缺少依赖。依赖自动更新导致冲突、打包失败。

qq_42977853的博客 2456

Devexpress16.2.6破解工具

Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具

NTscan扫描工具

ntscan是一个扫描器,可以扫描没有密码和弱密码的共享,先到配置文件中填写猜测的用户名和密码,扫描过程中右侧出现的是扫描日志。

These dependencies were not found: * @components/login in ./src/router/index.js 解决方法

These dependencies were not found: * @components/login in ./src/router/index.js 解决方法1、问题产生2、解决过程3、问题解决 1、问题产生 朋友给我一个前端模板,让我在里面写项目,但是我不知道他的模板什么意思,然后就出现了**These dependencies were not found: * @components/login in ./src/router/index.js **这个错误 2、解决过程 终端让我 To

码出精彩 1万+

efm32 入门.pdf

本PDF共计22页,介绍的是操作驱动API,下载与否自己斟酌。

解决报错 This dependency was not found(这个依赖没有找到)

错误的原因是你这个文件引入或使用了文件资源,但却没有找到 我是因为写样式使用了less,却没有依赖,所以把less删掉或是下less依赖就可以了 <style scoped lang='less'> </style> 报错全部信息 ERROR Failed to compile with 1 errors 下午10:57:54 This dependency was not found: !!../…/…/node_modules/extract-text-webpack-p.

m0_67391120的博客 1万+

解决:These dependencies were not found

ERROR Failed to compile with 2 errors These dependencies were not found: @/views/enterprise_users/enterprise_verify.vue in ./src/router/index.js @/views/enterprise_users/index.vue in ./src/router/index.js vue项目启动的时候报错:These dependencies were not found: 它提

Codernmx 1万+

2021-08-08 解决“These dependencies were not found“的报错

场景 使用命令:npm i -S axios后,再次运行vue项目,出现题述报错 解决 输入如下命令: npm install --save

GAARA 4928

vue2 npm run build报错 These dependencies were not found:

vue2 npm run build报错 These dependencies were not found:

红烧咸咸鱼 2177

错误解决:These dependencies were not found: core-js/modules/es.array.push.js

错误描述执行npm run dev后报错:?ref--12-0!?ref--12-0!解决方式删除node_modules中的3个文件夹:core-js之后,再执行。

七夜zippoe的博客 5674
上一篇: 在vue项目中引入bootstrap框架
下一篇: yii2.0 mysql 函数的使用
firstcode666
博客等级 码龄5年 53粉丝 20原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
⌂ 换网址