You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'.
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
The text was updated successfully, but these errors were encountered: