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

Created on 14 Dec 2017  路  32Comments  路  Source: vuejs/vetur

Info

Problem

Hello
i've started learn vue today with vetur package and i'm having the following issue:

image

I tried to search for this particular issue but i couldn't find anything useful online.
I would be very happy to hear any solutions how to fix it.
Thank you!

upstream

Most helpful comment

You can disable it temporarily by setting vetur.validation.template: false.
Or roll back to 0.11.3.
https://github.com/vuejs/vetur/issues/579#issuecomment-351839757

I can repro and will fix it soon.

All 32 comments

Same problem here, worked fine in 0.11.3

Same issue here.

Info

Platform: MacOS 10.13.1
Vetur version: 0.11.4
VS Code version: 1.19.0

Does it happen to you on https://github.com/octref/veturpack?
Can you make a repro case based on it?

Same problem, worked in 0.11.3, but broken in 0.11.4
VS Code: 1.19.0

Same here.

MacOS 10.13.1
VS Code 1.19.0

You can disable it temporarily by setting vetur.validation.template: false.
Or roll back to 0.11.3.
https://github.com/vuejs/vetur/issues/579#issuecomment-351839757

I can repro and will fix it soon.

Same issue here!

@octref Thank you very much!
Issue closed

Let's keep it open. This is probably an upstream bug with eslint-plugin-vue that needs to be fixed.

I'll push a proper fix later today.

Are you able to provide the .vsix download url for 0.11.3 by any chance?

Found it

https://ms-vscode.gallery.vsassets.io/_apis/public/gallery/publisher/octref/extension/vetur/0.11.3/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage

edit: how-to

  1. Disable extension auto-updating
  2. Uninstall vetur
  3. Download this and change the extension from .VSIXPackage to .VSIX
  4. Install from VSIX

These options can be found with the 3 dots menu in the Extensions window

Same problem.

MacOS 10.13.2
VS Code 1.19.0
Vetur 0.11.4

m

I have the same problem,hope to solve it quickly

image

same error.

same error here. 馃槺

Can modify vue-language-service config myself that a like es-lint?
It isn't apply all the same rule for everybody.
Otherwise vetur can support auto fix template error.

qq

This issue occoured not only in <template>, but also in <style>

I fixed that by set vetur config, you can set "vetur.validation.template": false to your vscode user setting

Thanks for the hard work.

but why release a so buggy version? Need more developer to help?

@mingyec This method will make the <template> error not found

You need to add ' lang="html" ' , but it's too troublesome and regrets to update it. Hope that the official can fix it.

same error.

Platform: Win7
Vetur version: 0.11.4
VS Code version: 1.19.0

@leaper1
But after adding 'lang="html"', template will lose emmet support. For me, it's even worse.

Same here, but was working yesterday before VC & Vetur update.
Adding lang="html" to template fixes issue.

@AchillesG, my Emmet stills works although on further testing, it's because I have following in my settings:

    "emmet.includeLanguages": {
        "blade.php": "html",
        "vue": "html"
    }

OS: Win10x64
VC: 1.19.0
Vetur: 0.11.4

@tyler36

Yes, adding lang="html" can fix this issue, but after adding it, VS Code will not prompt close tags.

For example: without lang="html", when i have already input <div>, and after type <, VS Code will prompt the close tag </div>, and i can just click enter to insert the close tag.

Not sure if this is Vetur's issue or other plugin's issue?

@shevchenic
Yep, confirmed here too.
I'm new to VC and am using an extension auto-close to ... well ... auto-close html tags.

It was a featured I missed from Sublime and have been using from day 1 so never knew about the feature you're talking about.

Do not listen to people saying lang="html". Do not set "vue": "html" in emmet.IncludeLanguages.

This has been fixed and I'll publish a new version soon.

same error in 0.11.4
i hope to fix it quickly.
thanks

image
OS: Win10x64
VC: 1.19.0
Vetur: 0.11.4

there are so many pages need to add lang="html", i don't wanna do that

Was this page helpful?
0 / 5 - 0 ratings