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

ERROR TypeError: Cannot read property 'createElement' of undefined, js engine: hermes #26042

Closed
98rahul opened this issue Jan 25, 2023 · 1 comment
Labels
Component: Developer Tools Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug Type: Bug

Comments

@98rahul
Copy link

98rahul commented Jan 25, 2023

App

using flipper dor react devtools

Repro steps

migrate to current version of RN-0.71.1
using flipper
enable hermes engine
run the app

How often does this bug happen?

Every time

DevTools package (automated)

No response

DevTools version (automated)

No response

Error message (automated)

ERROR TypeError: Cannot read property 'createElement' of undefined, js engine: hermes

Error call stack (automated)

ERROR  TypeError: Cannot read property 'createElement' of undefined, js engine: hermes 

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);
}

Error component stack (automated)

No response

GitHub query string (automated)

No response

@ryancat
Copy link
Contributor

ryancat commented Mar 1, 2023

Hi @98rahul, thanks for flagging this. This is a known issue in RN apps when using the React DevTools plugin and turn on the trace update highlight feature in profiler. This issue should've been fixed recently with #26060.

@ryancat ryancat closed this as completed Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Developer Tools Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug Type: Bug
Projects
None yet
Development

No branches or pull requests

2 participants