You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1: Use <ValidationMessage> in <form>
2: Run svelte-check
Small reproduction example
No response
Screenshots
No response
Additional context
Argument of type 'typeof ValidationMessage' is not assignable to parameter of type 'ConstructorOfATypedSvelteComponent'.
Types of construct signatures are incompatible.
Type 'new (options: ComponentConstructorOptions<ValidationMessageProps>) => ValidationMessage' is not assignable to type 'new (args: { target: any; props?: any; }) => ATypedSvelteComponent'.
Construct signature return types 'ValidationMessage' and 'ATypedSvelteComponent' are incompatible.
The types of '$on' are incompatible between these types.
Type '<K extends string>(type: K, callback: (e: never) => void) => () => void' is not assignable to type '(event: string, handler: ((e: any) => any) | null | undefined) => () => void'.
Types of parameters 'callback' and 'handler' are incompatible.
Type '((e: any) => any) | null | undefined' is not assignable to type '(e: never) => void'.
Type 'undefined' is not assignable to type '(e: never) => void'.
The text was updated successfully, but these errors were encountered:
Describe the bug
The base type of
ValidationMessage
(SvelteComponentTyped
) is deprecated in Svelte 4.See PR for more information: sveltejs/svelte#8512
Which package/s are you using?
felte (Svelte), @felte/reporter-svelte, @felte/validator-zod
Environment
"svelte": "^4.0.0",
"felte": "1.2.10",
"@felte/reporter-svelte": "1.1.8",
"@felte/validator-zod": "1.0.16",
To reproduce
1: Use
<ValidationMessage>
in<form>
2: Run
svelte-check
Small reproduction example
No response
Screenshots
No response
Additional context
The text was updated successfully, but these errors were encountered: