Hey 👋
The UI project I've been working on has been using StencilJS v2 and TypeScript v4.5
Recently I upgraded to StencilJS v3 and TypeScript v5
In our web app's React TSX components, some folks have been using the custom elements rather than the React wrapped components.
e.g.,
return (
<my-button>example</my-button>
instead of
return (
<MyButton>example</MyButton>
Now in our web app, I'm seeing TypeScript errors like:
Property 'my-button' does not exist on type 'JSX.IntrinsicElements'
Anyone know how to fix this or what I'm doing wrong?
I thought generateTypeDeclarations might solve this, but it doesn't seem to be the case.