Parsing error: No Babel config file detected for 。。

简介: Parsing error: No Babel config file detected for 。。

vue文件第一行有波浪线提示,虽然项目能正常运行,但看着不舒服。

template~~~

错误提示:Parsing error: No Babel config file detected for 。。


解决方法1:

在package.json文件下找到"parserOptions",添加:"requireConfigFile" : false即可

如下:

"parserOptions": {
 
      "parser": "@babel/eslint-parser",
 
      "requireConfigFile" : false
 
    },

并在在文件顶上添加

<!-- eslint-disable vue/multi-word-component-names -->
<!-- eslint-disable vue/multi-word-component-names -->
<template>
  <div>
    <h3>品牌:{{brand}}</h3>
        <h3>价格:{{cprice}}</h3>
        <h3>颜色:{{color}}</h3>
        <button @click="add">价格加1</button>
  </div>
</template>
 
<script>
目录
相关文章
|
1月前
|
NoSQL Redis
进行主从复制时出现的异常FATAL CONFIG FILE ERROR (Redis 6.2.6)Reading the configuration file
进行主从复制时出现的异常FATAL CONFIG FILE ERROR (Redis 6.2.6)Reading the configuration file
132 0
|
1月前
|
关系型数据库 MySQL 数据库
Mysql-错误处理: Found option without preceding group in config file
Mysql-错误处理: Found option without preceding group in config file
296 0
|
1月前
Parsing error: No Babel config file detected for XXXXX
Parsing error: No Babel config file detected for XXXXX
|
7月前
|
关系型数据库 MySQL Linux
DVWA CentOS Could not connect to the MySQL service. Please check the config file.
DVWA CentOS Could not connect to the MySQL service. Please check the config file.
42 0
|
10月前
|
关系型数据库 MySQL 数据库
【报错】DVWA遇到Could not connect to the database service. Please check the config file. Database Error
【报错】DVWA遇到Could not connect to the database service. Please check the config file. Database Error
861 0
|
JavaScript
Vue3报错:Parsing error: No Babel config file detected 解决
Vue3报错:Parsing error: No Babel config file detected 解决
232 0
SpringCloud项目启动失败 not found config file[log.properties]
SpringCloud项目启动失败 not found config file[log.properties]
183 0
SpringCloud项目启动失败 not found config file[log.properties]
|
开发工具 git
error: could not lock config file .git/config: Permission denied/Command failed with exit 255
error: could not lock config file .git/config: Permission denied/Command failed with exit 255
330 0
|
1月前
|
自然语言处理 JavaScript
vue element plus Config Provider 全局配置
vue element plus Config Provider 全局配置
63 0
|
21天前
|
存储 消息中间件 Java
Java一分钟之-Spring Cloud Config:外部化配置
【6月更文挑战第8天】Spring Cloud Config提供外部化配置,通过Config Server管理和版本控制微服务配置。本文涵盖Config Server与Client的配置、常见错误、多环境配置、实时更新及使用示例。注意配置服务器URL、环境变量设置、Bus配置以及安全问题。使用Config能提升系统灵活性和可维护性,但要留意日志以确保配置正确和安全。
93 10

热门文章

最新文章