Error:-
Argument of type '{ "on:": undefined; }' is not assignable to parameter of type 'HTMLProps<"button", HTMLAttributes>'.
Object literal may only specify known properties, and '"on:"' does not exist in type 'HTMLProps<"button", HTMLAttributes>'.
Error:- Argument of type '{ "on:": undefined; }' is not assignable to parameter of type 'HTMLProps<"button", HTMLAttributes>'.
Object literal may only specify known properties, and '"on: "' does not exist in type 'HTMLProps<"button", HTMLAttributes>'.
Svelte:- v4.0.0
SvelteKit:- 1.20.4