Vetur: vscode updata 1.19, Plug-in error

Created on 15 Dec 2017  ·  21Comments  ·  Source: vuejs/vetur

  • [done ] I have searched through existing issues
  • [done ] I have read through docs
  • [done] I have read FAQ

Info

  • Platform:
  • Vetur version: 0.11.4
  • VS Code version: 1.19.0
    版本 1.19.0
    提交 816be6780ca8bd0ab80314e11478c48c70d09383
    日期 2017-12-14T12:06:43.492Z
    Shell 1.7.9
    渲染器 58.0.3029.110
    Node 7.9.0
    架构 x64

Problem

vscode version,updating plug-in vetur error!

"vetur initialized"

my email:[email protected]/[email protected]

image

Reproducible Case

question

Most helpful comment

I just updated to the same versions of Vetur and VS Code and start to get highlighted some part of my code with this:

[vue-language-server] Require self-closing on Vue.js custom components (<v-text-field>).

<v-text-field> is an tag used in Vuetify, and before the update everything was ok

[vue-language-server] '<template>' should have end tag.

The end tag </template> exist.

screen shot 2017-12-14 at 21 24 29

All 21 comments

I just updated to the same versions of Vetur and VS Code and start to get highlighted some part of my code with this:

[vue-language-server] Require self-closing on Vue.js custom components (<v-text-field>).

<v-text-field> is an tag used in Vuetify, and before the update everything was ok

[vue-language-server] '<template>' should have end tag.

The end tag </template> exist.

screen shot 2017-12-14 at 21 24 29

same error too.

@ysk8 you can set the config to except the template valide: vetur.validation.template: false.

@ysk8 me too

@mrmengjun How to operate it?

but @mrmengjun doing that, maybe the issue is related to the eslint-plugin-vue And of course the highlighted has been disappeared.

@SunOfHomeBoy if you are in macOS you can activate User Settings with cmd + , maybe for WIN ctrl + , regularly. Then search for vetur.validation.template and edit it.

screen shot 2017-12-14 at 22 00 48

~
这样竟然也可以~

@ReZhangxin please speak english :p

same error .
why?

same error

same error too. so disappointed about 0.11.4 changelog

@ysk8 same too. 😞

me too

so how to solve

same error .

<template> should have end tag.

This is a bug that has been fixed.

[vue-language-server] Require self-closing on Vue.js custom components ().

This is html-self-closing rule from eslint-plugin-vue: https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/html-self-closing.md

In 0.11.4, I used the recommended set from eslint-plugin-vue. And it seems it's too strict. I've changed that to essential.

After upgrading to 0.11.5, you can

vue报错但能正常运行,怎么解决啊

@corala Update extension 0.11.5, the latest

@corala use sublime like to change boy friend;hahahhaha

@octref

Leave _vetur.validate.template_ on, which uses the essential rule set from eslint-plugin-vue to lint template

typo: vetur.validation.template

Was this page helpful?
0 / 5 - 0 ratings