No PostCSS Config found in: E:\webproject\vuedemo\src\assets\style

博客指出报错内容为找不到配置文件,若检查发现无缺少安装的包且配置正确,问题可能出在文件路径上。需仔细查看项目结构,特别是 index.js 文件,其正确位置应在 src 目录下。

报错具体内容如图

报错原因:找不到配置文件

解决办法:这个报错,如果仔细检查发现没有缺少安装的包,且配置都正确,那就是文件路径的问题,仔细查看自己的项目结构,                           尤其是 index.js 文件的位置,index.js 文件正确的位置是 src 目录下

 

✖ 4 problems (0 errors, 4 warnings) 0 errors and 4 warnings potentially fixable with the `--fix` option. Plugin: vite-plugin-eslint File: D:/project/lp_leapcloud_main_web/src/App.vue 18:25:15 [vite] warning: D:\project\lp_leapcloud_main_web\src\icons\index.js 5:15 warning Property name "svg-icon" is not PascalCase vue/component-definition-name-casing ✖ 1 problem (0 errors, 1 warning) 0 errors and 1 warning potentially fixable with the `--fix` option. Plugin: vite-plugin-eslint File: D:/project/lp_leapcloud_main_web/src/icons/index.js Failed to load url /src/components/SvgIcon (resolved id: /src/components/SvgIcon) in D:/project/lp_leapcloud_main_web/src/icons/index.js. Does the file exist? Failed to load url /src/components/CarSearch (resolved id: /src/components/CarSearch) in D:/project/lp_leapcloud_main_web/src/utils/globalComponents.js. Does the file exist? Failed to load url /src/components/CarSearch/Select (resolved id: /src/components/CarSearch/Select) in D:/project/lp_leapcloud_main_web/src/utils/globalComponents.js. Does the file exist? Failed to load url /src/components/Charts/LpChartDialog (resolved id: /src/components/Charts/LpChartDialog) in D:/project/lp_leapcloud_main_web/src/utils/globalComponents.js. Does the file exist? Failed to load url /src/components/Charts/LpChart (resolved id: /src/components/Charts/LpChart) in D:/project/lp_leapcloud_main_web/src/utils/globalComponents.js. Does the file exist? Failed to load url /src/components/DateTimePicker/DateDiff (resolved id: /src/components/DateTimePicker/DateDiff) in D:/project/lp_leapcloud_main_web/src/utils/globalComponents.js. Does the file exist? Failed to load url /src/components/Charts/LpCharts (resolved id: /src/components/Charts/LpCharts) in D:/project/lp_leapcloud_main_web/src/utils/globalComponents.js. Does the file exist? Failed to load url /src/components/LpArea (resolved id: /src/components/LpArea) in D:/project/lp_leapcloud_main_web/src/utils/globalComponents.js. Does the file exist? Failed to load url /src/components/CarSearch/CommChartHeader (resolved id: /src/components/CarSearch/CommChartHeader) in D:/project/lp_leapcloud_main_web/src/utils/globalComponents.js. Does the file exist? Failed to load url /src/components/CarType (resolved id: /src/components/CarType) in D:/project/lp_leapcloud_main_web/src/utils/globalComponents.js. Does the file exist? Failed to load url /src/components/Editor (resolved id: /src/components/Editor) in D:/project/lp_leapcloud_main_web/src/utils/globalComponents.js. Does the file exist? Failed to load url /src/components/Fault/FaultCase (resolved id: /src/components/Fault/FaultCase) in D:/project/lp_leapcloud_main_web/src/utils/globalComponents.js. Does the file exist? Failed to load url /src/components/ConfirmDialog (resolved id: /src/components/ConfirmDialog) in D:/project/lp_leapcloud_main_web/src/utils/globalComponents.js. Does the file exist? Failed to load url /src/components/LpSelect (resolved id: /src/components/LpSelect) in D:/project/lp_leapcloud_main_web/src/utils/globalComponents.js. Does the file exist? Failed to load url /src/components/FuelType (resolved id: /src/components/FuelType) in D:/project/lp_leapcloud_main_web/src/utils/globalComponents.js. Does the file exist? 18:25:15 [vite] warning: 18:25:15 [vite] warning: 18:25:15 [vite] warning: 18:25:15 [vite] warning: 18:25:15 [vite] warning: 18:25:15 [vite] warning: D:\project\lp_leapcloud_main_web\src\App.vue 2:1 warning Expected indentation of 2 spaces but found 4 spaces vue/html-indent 3:1 warning Expected indentation of 4 spaces but found 8 spaces vue/html-indent 3:22 warning Require self-closing on Vue.js custom components (<router-view>) vue/html-self-closing 4:1 warning Expected indentation of 2 spaces but found 4 spaces vue/html-indent ✖ 4 problems (0 errors, 4 warnings) 0 errors and 4 warnings potentially fixable with the `--fix` option. Plugin: vite-plugin-eslint File: D:/project/lp_leapcloud_main_web/src/App.vue?vue&type=style&index=0&lang.css 迁移vite后出现这些错误 怎么解决
07-01
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

悟世君子

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值