Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dombavetta opened this issue Apr 24, 2019 · 1 comment · Fixed by #1244

Comments

@dombavetta
Copy link

  • [ 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

@ktsn
Copy link
Member

ktsn commented Apr 25, 2019

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants