I'm on a Javascript project (create-react-app 2.0
), using the tsserver but not Typescript (yes, it is possible), and I'm getting this linting error:
Property 'svg-icon' does not exist on type 'JSX.intrinsictElements'.
When doing something like:
<div>
<svg-icons icon="student" />
</div>
I know from other resources it has to do with declaring a namespace, however since my project is purely Javascript with a jsconfig.json
file, I don't know if this solution still applies, and where would I put the file containing this namespace.
For extra context, the svg-icon
web component is installed by one of our internal libraries and I don't handle it, but I think I don't need details from it to fix the linting here(?)
How can I fix this?