Vetur: [Template validation props] Error when optional camel-cased props are missing

Created on 23 Sep 2020  路  2Comments  路  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.28.0
  • VS Code version: 1.49.1

Problem

Vetur warn me that the props true-value? and false-value? are not provided, whereas those props are optional in the definition component.

image

Toogle.vue
image

bug template-interpolation

Most helpful comment

Definitions are generated with an error.
It should be 'true-value'? instead of 'true-value?'. The question mark is placed in the wrong spot

2342

All 2 comments

Definitions are generated with an error.
It should be 'true-value'? instead of 'true-value?'. The question mark is placed in the wrong spot

Definitions are generated with an error.
It should be 'true-value'? instead of 'true-value?'. The question mark is placed in the wrong spot

2342

Was this page helpful?
0 / 5 - 0 ratings