-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
ERROR TypeError: Cannot read property 'createElement' of undefined, js engine: hermes #35958
Comments
@98rahul - Take a look at these. I believe this is a known issue with workaround. Try disabling "Highlight updates when components render" |
@iBotPeaches i didn't find the supportsTraceUpdates in order to make it comment . |
@98rahul - Sorry mate. I just found some links to try and help you. Best of luck. |
@iBotPeaches always welcome! |
Probably a duplicate of #26060 facebook/react#26060 |
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue was closed because it has been stalled for 7 days with no activity. |
Description
migrate to current version of RN-0.71.1
using flipper
enable hermes engine
run the app
Version
0.71.1
Output of
npx react-native info
ERROR TypeError: Cannot read property 'createElement' of undefined, js engine: hermes
ERROR TypeError: Cannot read property 'createElement' of undefined, js engine: hermes
ERROR TypeError: Cannot read property 'createElement' of undefined, js engine: hermes
ERROR TypeError: Cannot read property 'createElement' of undefined, js engine: hermes
Steps to reproduce
migrate to current version of RN-0.71.1
using flipper
enable hermes engine
run the app
this is related to --->> path: node_modules/react-devtools-core/dist/backend.js
function initialize() {
canvas = window.document.createElement('canvas');
canvas.style.cssText = "\n xx-background-color: red;\n xx-opacity: 0.5;\n bottom: 0;\n left: 0;\n pointer-events: none;\n position: fixed;\n right: 0;\n top: 0;\n z-index: 1000000000;\n ";
var root = window.document.documentElement;
root.insertBefore(canvas, root.firstChild);
}
check here
Snack, code example, screenshot, or link to a repository
function initialize() {
canvas = window.document.createElement('canvas'); // error found here
canvas.style.cssText = "\n xx-background-color: red;\n xx-opacity: 0.5;\n bottom: 0;\n left: 0;\n pointer-events: none;\n position: fixed;\n right: 0;\n top: 0;\n z-index: 1000000000;\n ";
var root = window.document.documentElement;
root.insertBefore(canvas, root.firstChild);
}
The text was updated successfully, but these errors were encountered: