解决iview中</Input>标签报错的方法

(1)To turn it off, set vetur.validation.template: false.

这时错误并不会消息。

(2)在git bash中输入yarn add -D eslint eslint-plugin-vue,若没有安装yarn则需要先安装,安装可采用npm的安装方法;

(3)在eslintrc.js中配置,如下:

 1   extends: [
 2     // https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
 3     // consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
 4     ‘plugin:vue/recommended‘, //1
 5     // https://github.com/standard/standard/blob/master/docs/RULES-en.md
 6     ‘recommended‘ //2
 7   ],
 8   // required to lint *.vue files
 9   plugins: [
10     ‘vue‘
11   ],
12   // add your custom rules here
13   rules: {
14     // allow async-await
15     ‘generator-star-spacing‘: ‘off‘,
16     // allow debugger during development
17     ‘no-debugger‘: process.env.NODE_ENV === ‘production‘ ? ‘error‘ : ‘off‘,
18     "vue/html-self-closing": "off" //3
19   }
20 }

这样就可以解决问题了!

参考:https://github.com/vuejs/vetur/blob/master/docs/linting-error.md#linting-for-template

原文地址:https://www.cnblogs.com/lanyb009/p/9246712.html

时间: 2024-08-01 21:39:48

解决iview中</Input>标签报错的方法的相关文章

web.xml中taglib标签报错问题解决方案

<taglib>标签在web.xml文件中报错解决方法 配置web.xml文件时,taglib标签报错,但不会影响程序的运行,web.xml 如下: < xml version="1.0" encoding="UTF-8" > <web-app id="WebApp_ID" version="2.4" xmlns="" xmlns:xsi="" xsi:sc

解决myeclipse中tomcat启动报错A configuration error occurred during startup. Please verify the preference field whit the prompt:Cannot connect to VM

原因一:可能是tomcat里面文件不小心被删除了.尝试更换tomcat, 解决步骤:重新下载tomcat并解压.点击windows——> preferences——>tomcat重新配置. 原因二:myeclipse系统自带jdk出问题 解决步骤:重新下载tomcat并解压.点击windows——> preferences——>tomcat——>jdk,配置成你自己的jdk 原因三:由于软件冲突导致的错误 解决步骤: 找到myeclipse.ini文件 加上-Djava.ne

在WSL中安装swool报错 error: unrecognized command line option &#39;-V&#39; 的解决方法

Windows Subsystem for Linux Ubuntu中使用pecl安装swool时遇到错误"error: C compiler cannot create executables"."error: unrecognized command line option '-V'" 解决方法 先看解决方法, 将gcc版本降低到4.8即可,因为高版本gcc取消了-V参数: sudo apt install gcc-4.8 -y sudo update-alte

windows平台在tomcat中启动cas报错解决

windows平台在tomcat中启动cas报错: Caused by: java.lang.UnsatisfiedLinkError: Could not load library. Reasons: [no jansi in java.library.path, 系统找不到指定的路径.] 解决办法:将jansi.dll文件放到C:\Windows\System32目录下即可. 注意:jansi.dll文件在使用gradle编译打包cas时会下载到C:\Users\${用户名}\.gradle

20170514002Oracle 11g R2安装过程中遇到的报错及解决办法

Oracle 11g R2安装过程中遇到的报错及解决办法 1.提示Check if the DISPLAYvariable is set.    Failed<<<< 解决方案: #xhost +  //切换到root用户输入 #su – Oracle  //切换到oracle用户 $./runInstaller  //执行安装程序 xhost 是用来控制X server访问权限的. 通常当你从hostA登陆到hostB上运行hostB上的应用程序时, 做为应用程序来说,hostA

Eclipse中项目全部报错----项目全部打红叉的解决办法

今天遇到一个超级郁闷的事情,Eclipse新建的项目全部都打有红叉,我起初以为自 己可能是因为这两天一直在配置NDK开发环境方面的东西,是不是一不小心把那个地方给配置了,然后新建项目时项目都会出现红叉的效果.然后我clean了 一下,遭大糕了,所有的项目都出错了. 打开下面的错误提示: 错误的意思:Debug Certificate 过期了的缘故.百度了一下,果然也有遇到相似的问题,说是牵涉了一个私钥的时间期限问题. 解决办法是:进入:C:\Documents and Settings\Admi

VS Code中怎么解决 TSLint: &quot; should be &#39; (quotemark) 报错问题?

VS Code配置typescript问题: VS Code中, user setting中将autoFixOnSave 设置为true. ref:https://github.com/praveenpuglia/angular-sanity/issues/4 VS Code中怎么解决 TSLint: " should be ' (quotemark) 报错问题? 原文地址:https://www.cnblogs.com/watermarks/p/9520949.html

Eclipse 新建.jsp页面后,页面头部标签报错的解决方法

Eclipse 新建.jsp页面后,页面头部标签报错的解决方法 1.报错地方: 2.解决方法: .jsp页面右键==>BUild Path ==>Configure Build Path... 3.接着 4.按步骤操作后.jsp页面就不会报错了 版权声明:本文为CSDN博主「爱吃狼的羊」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明. 原文链接:https://blog.csdn.net/weixin_39890531/article/details/78

freemarker自定义标签报错(七)

1.错误描述 六月 09, 2014 11:11:09 下午 freemarker.log.JDK14LoggerFactory$JDK14Logger error 严重: Template processing error: "Expression a is undefined on line 27, column 23 in tag.ftl." Expression a is undefined on line 27, column 23 in tag.ftl. The probl