baseballyama / svelte-preprocess-delegate-events

You can delegate events by on:* 🎉
MIT License
52 stars 0 forks source link

on* is undefined #36

Closed akashlama1998-icloud closed 1 year ago

akashlama1998-icloud commented 1 year ago

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

akashlama1998-icloud commented 1 year ago

Got it! Had to add svelte-jsx.d.ts also include it in tsconfig.