How to use web component in solidjs

Please ask solidjs how to solve the use of web component component editor ts reported error Property my-component does not exist on type JSX.IntrinsicElements
No description
No description
3 Replies
Otonashi
Otonashi7mo ago
make sure the file you're declaring this in has imports and/or exports like add import "solid-js"; to the top of the file or something
Json Lee
Json Lee7mo ago
I made sure the file was already in effect in ts.
optimistarby
optimistarby5mo ago
The bigger issue I have is two things: that I have to use the prop: special form, and when I do, typescript complains about it not existing.
Want results from more Discord servers?
Add your server