svelte
svelte copied to clipboard
Error handling - was created without expected prop
Describe the problem
I have two problems with catch errors in my code.
- I would like catch all warnings when developer write property with incorect name.
<component1 masage={myMessage}/>
- error in name masage, warnings its good, but i would like Fatal error. Will be better have compile options for that. ( #475 )
- The same problem with SSR, developer make mistake and send another param name. SSR didn't have any warnings, only filtering.
Thank you.
Describe the proposed solution
- Instead console.warn i would like throw Error.
- For SSR i would like Error also if props not matched.
Alternatives considered
Make option "strictProps": true for both cases.
Importance
nice to have