vue解决:Parsing error: No Babel config file detected for ....

报错信息

Parsing error: No Babel config file detected for C:\Users\Admin\Desktop\shabi\work\src\App.vue. Either disable config file checking with requireConfigFile: false, or configure Babel so that it can find the config files.

分析错误:没有检测到C:\Users\Admin\Desktop\shabi\work\src\App.vue的Babel配置文件。请使用requireConfigFile:false禁用配置文件检查,或者配置Babel以便它可以找到配置文件。

解决办法(按需求选择):

方法一:vsCode打开文件夹时,打开vue项目根路径如:myProject

方法二:在package.json里面添加  "requireConfigFile": false 但是配置Babel检查也被禁用了

 

猜你喜欢

转载自blog.csdn.net/qq_58647634/article/details/133638771