Vetur: Template literal strings within the SFC template section show error "cannot find name tem*insert various characters here*. Vetur (2304)".

Created on 24 Apr 2019  路  1Comment  路  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 literal strings within the SFC template section show error "cannot find name teminsert various characters here. Vetur (2304)".
image

Reproducible Case

bug diagnostics template-interpolation

Most helpful comment

Thanks for opening this issue!

Here is simplified repro.

<template>
  <div :title="`${test}`" />
</template>

<script lang="ts">
import Vue from 'vue'

export default Vue.extend({
  data() {
    return {
      test: 'hi'
    }
  }
})
</script>

>All comments

Thanks for opening this issue!

Here is simplified repro.

<template>
  <div :title="`${test}`" />
</template>

<script lang="ts">
import Vue from 'vue'

export default Vue.extend({
  data() {
    return {
      test: 'hi'
    }
  }
})
</script>

Was this page helpful?
0 / 5 - 0 ratings