These dependencies were not found:问题

在尝试构建Vue应用程序时遇到了'Building for production...' 错误,提示某些依赖未找到,如'/api/threeKingdoms/kindlinguserawardin'。问题源于路径引用不一致,尤其是大小写敏感问题。解决方案是确保所有引入路径与实际文件路径完全匹配,包括大小写。检查并修正这些路径后,构建错误应当得到解决。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

启动报错:
-  Building for production...
 ERROR  Failed to compile with 28 errors11:05:13

These dependencies were not found:

* @/api/threeKingdoms/kindlinguseraward in ./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.2.3@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.8@vue-loader/lib??vue-loader-options!./src/views/threekingdoms/kindlinguseraward.vue?vue&type=script&lang=js&

问题原因:路径错误看看自己的报名和引用的路径的是否一直(特别注意大小写问题

解决:保证路径和报名引用一直

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值