Skip to content

'SVG' cannot be used as a JSX component. #186

Closed Answered by Themodem
namansamra asked this question in Q&A
Discussion options

You must be logged in to vote
- "@types/react": "^17.0.0",
+ "@types/react": "^18.0.8",

In my case bumping @types/react to ^18.0 was enough to resolve this issue

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@cgcab
Comment options

@TShaunik
Comment options

@gilbarbara
Comment options

@cgcab
Comment options

@gilbarbara
Comment options

Answer selected by gilbarbara
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants