S
SolidJS11mo ago
Json Lee

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
Otonashi11mo 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 LeeOP11mo ago
I made sure the file was already in effect in ts.
optimistarby
optimistarby9mo 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.

Did you find this page helpful?