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>
目录
相关文章
|
4月前
|
缓存 关系型数据库 MySQL
error: Failed dependencies: mariadb-connector-c-config is obsoleted by mysql-community-server-8.0.36-1.el7.x86_64 问题解决
error: Failed dependencies: mariadb-connector-c-config is obsoleted by mysql-community-server-8.0.36-1.el7.x86_64 问题解决
230 19
|
6月前
|
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
312 0
|
6月前
|
前端开发
命令行创建React项目
命令行创建React项目
命令行创建React项目
|
6月前
|
关系型数据库 MySQL 数据库
Mysql-错误处理: Found option without preceding group in config file
Mysql-错误处理: Found option without preceding group in config file
726 0
|
6月前
|
Kubernetes 容器
k8s-error execution phase upload-config/kubelet: Error writing Crisocket...
k8s-error execution phase upload-config/kubelet: Error writing Crisocket...
173 0
|
6月前
Parsing error: No Babel config file detected for XXXXX
Parsing error: No Babel config file detected for XXXXX
|
12月前
|
关系型数据库 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.
66 0
|
JavaScript Cloud Native Go
Error: Cannot find module ‘webpack/bin/config-yargs‘ at Function.Module._resolveFilename (intern
Error: Cannot find module ‘webpack/bin/config-yargs‘ at Function.Module._resolveFilename (intern
76 0
|
关系型数据库 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
1177 0
|
2月前
|
算法 安全 Java
微服务(四)-config配置中心的配置加解密
微服务(四)-config配置中心的配置加解密
下一篇
无影云桌面