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

Its element type 'ReactElement<any, any> | Component<IIframe, any, any> | null' is not a valid JSX element. #113

Closed
HT-Moh opened this issue Apr 9, 2022 · 2 comments

Comments

@HT-Moh
Copy link

HT-Moh commented Apr 9, 2022

Type issue, maybe due to the ReactNode' on React 18

"react-iframe": "^1.8.0"
"react": "^18.0.0",next``

image

Maybe related:

DefinitelyTyped/DefinitelyTyped#46691
DefinitelyTyped/DefinitelyTyped#56210

@eps1lon
Copy link

eps1lon commented Apr 9, 2022

Explanation and workaround can be found in software-mansion/react-native-svg#1741

@HT-Moh
Copy link
Author

HT-Moh commented Apr 14, 2022

The following solution worked for me:
Update packages react and react-dom and types

 "react": "^18.0.0",
 "react-dom": "^18.0.0",
 @types/react": "^18.0.4",
 @types/react-dom": "^18.0.0"

Add the following to package.json

"resolutions": {
    "react-i18next": ">=11.16.4"
  }

@HT-Moh HT-Moh closed this as completed Apr 14, 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

2 participants