-
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Closed
Description
Vue version
3.5.0-alpha.1
Link to minimal reproduction
Steps to reproduce
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.
<script setup>
import { ErrorMessage } from 'vee-validate'
</script>
<template>
<ErrorMessage name="password" class="error" />
</template>What is expected?
Should compile.
What is actually happening?
Throws with:
error TS2345: Argument of type '{ name: string; class: string; }' is not assignable to parameter of type 'never'.
21 <ErrorMessage name="password" class="error" />
System Info
System:
OS: macOS 14.4.1
CPU: (10) arm64 Apple M1 Max
Memory: 2.02 GB / 64.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.20.1 - ~/.volta/tools/image/node/18.20.1/bin/node
Yarn: 1.22.17 - ~/.volta/tools/image/yarn/1.22.17/bin/yarn
npm: 9.7.1 - ~/.volta/tools/image/npm/9.7.1/bin/npm
pnpm: 9.0.6 - ~/.volta/bin/pnpm
Browsers:
Chrome: 124.0.6367.91
Safari: 17.4.1
npmPackages:
vue: 3.5.0-alpha.1 => 3.5.0-alpha.1Any additional comments?
This does not happen with v3.4 (as you can see in the playground repro)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels