svelte icon indicating copy to clipboard operation
svelte copied to clipboard

Error handling - was created without expected prop

Open StagnantIce opened this issue 2 years ago • 0 comments

Describe the problem

I have two problems with catch errors in my code.

  1. 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 )

  1. 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

  1. Instead console.warn i would like throw Error.
  2. For SSR i would like Error also if props not matched.

Alternatives considered

Make option "strictProps": true for both cases.

Importance

nice to have

StagnantIce avatar Dec 18 '22 21:12 StagnantIce