Vetur: [ERROR WHEN add PROPS to COMPONENT] Property 'xyz' does not exist on type 'CombinedVueInstance<Vue,

Created on 10 Jul 2020  路  2Comments  路  Source: vuejs/vetur

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

Info

  • Platform: macOS
  • Vetur version: 0.24.0
  • VS Code version: 1.4.7 stable and insider

Problem

my problem related with #1834

if i set the props inside component, it throws lot of error

Screen Shot 2020-07-10 at 17 16 03

Screen Shot 2020-07-10 at 17 16 11

Reproducible Case

just add props inside component and it all broken

im sorry my english is not so well. thanks for this awesome project before!!

Most helpful comment

UPDATED

spent a lot of hours trying to figure it out about this problem, and finally post this issue here. when i'm doing FIRST THING that i should do first restart my laptop... :) voila the problem solved :(

sorry for my 'noobiness'

Screen Shot 2020-07-10 at 17 32 22

All 2 comments

UPDATED

spent a lot of hours trying to figure it out about this problem, and finally post this issue here. when i'm doing FIRST THING that i should do first restart my laptop... :) voila the problem solved :(

sorry for my 'noobiness'

Screen Shot 2020-07-10 at 17 32 22

You shouldn't need to restart your whole computer for an issue in VSCode. I suspect what worked was restarting VSCode and that resulted in Vetur/TS re-reading project information. It should be able to do it in realtime, though. So IMHO this is still actually a bug if it can be reproduced.

Was this page helpful?
0 / 5 - 0 ratings