Using a component from an external library like vee-validate throws compilation errors with strictTemplates enabled, as the props type is always inferred to be never.
This may be an issue with vue-tsc or vee-validate itself, but it's only happening with Vue v3.5.
error TS2345: Argument of type '{ name: string; class: string; }' is not assignable to parameter of type 'never'.
21 <ErrorMessage name="password" class="error" />
Vue version
3.5.0-alpha.1
Link to minimal reproduction
https://play.vuejs.org/#eNqNkk1PGzEQhv+K5QsXYpdCe4jSirbKoZUKCDhaQtbukBj8Jc/sEinKf2d2N4QNX+Jmzzvv+H1mdy1/5azaBuRUzrAqLpNAoCb/NNGFnAqJtZiXksp/QLQLEBtxW1IQBy3ApLXe1ZbgwMSZHtzs4wtByJ4Fvgkx2/NHG+CHkdkiPqRSGykqz2cuQdfGd82umR6NkIdyyDIJNqs7TJHTrrvRZiugkVPRV7raKfPoGlpKyePEZtepRi6JMk61rurIQ2rwri0qAumYg37Dc/g0b4z6iVHj9tMTdfRVfde1Q9oTFGBgq5HdIxsTNwxJWKV46xYvEKsUsvNQzjO5FPdRrffp4V9fo9LALnK1hOr+jfodrgaCiwIIpWWenUa2LIAGeX51Bis+78SQ6sZv6d8RLwGTb7qMQ9vvJtYce9TXp/3bfzEXF9c4XxFEfILqgvbb6Pt57Q38+QAdqbiKrre/yWvUZ5xjdTLa8k0LpXuTF3ysvqkvE+vz0qojuXkE5l0Fxw==
Steps to reproduce
Using a component from an external library like
vee-validate
throws compilation errors withstrictTemplates
enabled, as the props type is always inferred to benever
.This may be an issue with
vue-tsc
orvee-validate
itself, but it's only happening with Vue v3.5.What is expected?
Should compile.
What is actually happening?
Throws with:
System Info
Any additional comments?
This does not happen with v3.4 (as you can see in the playground repro)