Vetur: Unexpected Vetur error messages

Created on 24 Apr 2019  路  27Comments  路  Source: vuejs/vetur

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

Info

  • Platform: macOS
  • Vetur version: 0.19.0
  • VS Code version: 1.33.1

Problem

<template>
  <v-container grid-list-lg>
    Nice
  </v-container>
</template>

<script lang="ts">
import Vue from 'vue';
import { VContainer } from 'vuetify/lib';

export default Vue.extend({
  components: {
    VContainer,
  },
});
</script>

The above component causes the error below:

Screen Shot 2019-04-24 at 12 26 41 PM


Reproducible Case

bug template-interpolation

Most helpful comment

I already made a PR #1222.

All 27 comments

灞忓箷蹇収 2019-04-24 涓嬪崍2 45 47
Yes, I've met the question as you too.

I use version 0.18.1 for now.waiting for new release.

Right now I turned off Experimental: Template Interpolation Service.

Right now I turned off Experimental: Template Interpolation Service.

Worked for me. Thanks !

I'm sorry, where can you edit this setting ?

(edit) I bet 2$ that this issue with blow up.

@aljaxus In your settings.json file you can add "vetur.experimental.templateInterpolationService": false

@aljaxus In your settings.json file you can add "vetur.experimental.templateInterpolationService": false

Thanks. I just found it. I guess I scrolled by when searching for it...

For anyone else that might be searching for the temporary "fix";

  • VSCode -> Toolbar > File > Preferences > Settings -> (sidebar in settings) Extensions > Vetur > "Experimental: Template Interpolation Service" toggle at the very start of Vetur section (as @chanlito pointed out here)

  • Or just edit the settings.json file, located at "~/.config/Code/User/settings.json" (on Linux. I don't know where it's located on MacOS or Windows), and add the "vetur.experimental.templateInterpolationService": false line (as @dukferradj pointed out here)

me too

me too

Read my reply to "fix" the issue.

Me too. And after I add this config:

"vetur.experimental.templateInterpolationService": false

It is back to working again! Thanks ~ @dukferradj

@dukferradj awesome, thanks for posting that, it solved my issue!

FYI, for the sake of debugging this issue, I was getting the following:

image

This seems to be occurring for every computed property I'm generating via Vuex's mapState or mapGetter, and even appeared for a regular method that I have defined too

image
What's the problem?
Opening all files today is like this

help

image
What's the problem?
Opening all files today is like this

help

"vetur.validation.template": false
Add this to it.
But I don't know why.

This bug happens when the a attribute name contains a hypen, e.g.

<template>
  <div foo-bar="baz"/>
</template>

I have the error too. It's appening when a prop or event have a hyphen or comma.
Cases appening for me:

<div 
 :max-bounds="maxBounds"
 @event-created="createEvent"
 @update:center="centerUpdate">
</div>

Appear at 0.19.0, retreat to 0.18.1

I already made a PR #1222.

@ktsn It's not only hyphens, I have the problem with colons too

That's the same cause. The PR covers your case.

@ktsn Allright, thanks! 馃挴

Fixed via #1222.

Still not fixed
image

Vetur version 0.19.1
Screenshot 2019-04-25 at 09 16 08

@frizar @valerijmedvid
Anyhow... temp fix

Up !

Vetur version 0.32.0 setting.json add this config:
"vetur.validation.interpolation": false

I will lock this issue.
Please open a new issue when you have problem.

Was this page helpful?
0 / 5 - 0 ratings