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-native with Flipper react-devtools-inline causes createElement failure #4131

Open
devYonz opened this issue Sep 22, 2022 · 0 comments
Open

Comments

@devYonz
Copy link

devYonz commented Sep 22, 2022

🐛 Bug Report

If Highlight component updates check box in Flipper is checked (Flipper-> React DevTools settings) a reactDOM createElement call makes flipper and the connect app start outputting the failure:
ERROR TypeError: Cannot read property 'createElement' of undefined, js engine: hermes

Unchecking the checkbox resolves this error. Command line launch of react-devtools doesn't have the same checkbox or error.
Screen Shot 2022-09-21 at 8 31 51 PM

The issue happens in the current Flipper with bundled react-devtools 4.24 and also happens after forcing to use globally installed 4.26

To Reproduce

npx react-native init
brew install Flipper
npm i -g react-devtools
npm i -g react-devtools-inline
run Flipper and connect to bare app.

Environment

RN: 0.70.1
Flipper: 0.166.0
React DevTools: 4.24, 4.26
Tested on android and iso emulators.
Desktop: Mac OSX Monterey v12.6

Feel free to link: #4046

Stackoverflow searches for createElement errors are flooded with #4046 items but in this context, the issue has to deal with the devToold doing react web things when connected to a react-native-app. Flagged in: https://stackoverflow.com/questions/73564919/react-native-flipper-react-devtools-not-working/73565093 as well

Relevant other issues that may confound this issue: #3722
#3284

credit: @touchmarine for the solve.

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