Skip to content

DevTools can't inspect object without prototype #17754

@yume-chan

Description

@yume-chan

Do you want to request a feature or report a bug?

Bug

What is the current behavior?

  1. Select a component
  2. The right panel (property panel?) always shows Loading...
  3. The following error is printed to the console.
backend.js:1 Uncaught TypeError: Cannot read property 'name' of undefined
    at O (backend.js:1)
    at s (backend.js:1)
    at s (backend.js:1)
    at l (backend.js:1)
    at Object.inspectElement (backend.js:6)
    at t.<anonymous> (backend.js:6)
    at t.r.emit (backend.js:6)
    at backend.js:32
    at t (backend.js:8)

image

I don't know why you minify the output, but the call stack points to here:

} else if (data.constructor.name === 'ArrayBuffer') {

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than React. Paste the link to your JSFiddle (https://jsfiddle.net/Luktwrdm/) or CodeSandbox (https://codesandbox.io/s/new) example below:

https://codesandbox.io/s/falling-wave-1j0qe

What is the expected behavior?

React DevTools displays the props of the selected component.

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?

React 16.12.0
Chrome 79.0.3945.88
IDK

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions