Vetur: Error: Cannot find name 'directives'. Vetur(2304) [1, 1]

Created on 26 Apr 2019  路  4Comments  路  Source: vuejs/vetur

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

Info

  • Platform: Linux
  • Vetur version: 0.19.2
  • VS Code version: 1.33.1

Problem

Several error messages like:

Cannot find name 'directives'. Vetur(2304) [1, 1]

Screenshot from 2019-04-26 09-33-39

Reproducible Case

  1. Checkout https://github.com/ndabAP/vue-command
  2. Open Stdin.vue
need-more-info

Most helpful comment

I'm sorry, I updated and restarted Visual Studio Code but it seems I had to manually click on "Reload" at the extension. Everything is fine!

All 4 comments

Hmm, cannot reproduce. Are you sure you are using v0.19.2? Because we have fixed such problem just that version.

Also what do you see when you run a command "Vetur: Show corresponding virtual file and sourcemap" in that file?

Am having the same issue but mine was caused v-slot is seems like vetur doesn't recognize scope-slot
Screenshot from 2019-04-26 12-54-38

@Akumzy That's another issue #1203

I'm sorry, I updated and restarted Visual Studio Code but it seems I had to manually click on "Reload" at the extension. Everything is fine!

Was this page helpful?
0 / 5 - 0 ratings