Semantic-Org / Semantic-UI-React

The official Semantic-UI-React integration
https://react.semantic-ui.com
MIT License
13.21k stars 4.05k forks source link

Image Component throws JSX element type 'Image' does not have any construct or call signatures. #4357

Closed SakisTsalk closed 2 years ago

SakisTsalk commented 2 years ago

Bug Report

When using <Image /> component in react 18 with typescript the error JSX element type 'Image' does not have any constructor call signatures. is thrown.

Probably because React removed the StatelessComponent Class in typescript.

welcome[bot] commented 2 years ago

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you've completed all the fields in the issue template so we can best help.

We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

layershifter commented 2 years ago

Duplicate #4352.