Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React 18 TS ReactNode typings issue #211

Open
grzennio opened this issue May 31, 2022 · 0 comments
Open

React 18 TS ReactNode typings issue #211

grzennio opened this issue May 31, 2022 · 0 comments

Comments

@grzennio
Copy link

Error occured after upgrading packes with React v 18
"react": "18.1.0", "fslightbox-react": "1.6.2",
Error:
TS2786: 'FsLightbox' cannot be used as a JSX component. Its instance type 'FsLightbox' is not a valid JSX element. The types returned by 'render()' are incompatible between these types. Type 'import(".../node_modules/@types/react-dom/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'. Type '{}' is not assignable to type 'ReactNode'.

Issus related:
microsoft/DefinitelyTyped-tools#433

@grzennio grzennio changed the title React 18 TS ReactNode typings issu React 18 TS ReactNode typings issue May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant