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
Same as previous version. "class" and "style" attribute should be allowed.
What is actually happening?
"class" and "style" attributes needs to be declared as prop in the component, else I have this error:
error TS2322: Type '{ class: string; }' is not assignable to type 'IntrinsicAttributes & Partial<{}> & Omit<Readonly<ExtractPropTypes<{}>>, never>'.
Property 'class' does not exist on type 'IntrinsicAttributes & Partial<{}> & Omit<Readonly<ExtractPropTypes<{}>>, never>'.
12 <MyButton class="a-super-class" />
~~~~~
Link to minimal reproduction
https://github.com/shenron/vite-demo/tree/tsx-issue
Steps to reproduce
What is expected?
Same as previous version. "class" and "style" attribute should be allowed.
What is actually happening?
"class" and "style" attributes needs to be declared as prop in the component, else I have this error:
System Info
Any additional comments?
I have two components. It's broken only If I use an already built component.
The text was updated successfully, but these errors were encountered: