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

Bug: backend.js Uncaught TypeError: Cannot read property 'sub' of undefined #18205

Closed
steida opened this issue Mar 3, 2020 · 2 comments
Closed

Comments

@steida
Copy link

steida commented Mar 3, 2020

backend.js:32 Uncaught TypeError: Cannot read property 'sub' of undefined
    at g (backend.js:32)
    at e (backend.js:8)

It happens when a server returns a string without HTML. I suppose React dev tools expect DOM.

Screenshot 2020-03-03 at 21 43 42

@steida steida added the Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug label Mar 3, 2020
@bvaughn
Copy link
Contributor

bvaughn commented Mar 3, 2020

DevTools only injects if the document contentType is text/html (see #17739). This change also required adding some checks for "'sub' of undefined" (see #17848).

Unfortunately the first change was released in v4.4.0 (January 3, 2020) and the second change has not yet been released. So this is a known issue and will be fixed by v4.4.1/v4.5.0 whenever it's released...which should be soon. I guess probably this week.

Sorry for the inconvenience.

@bvaughn bvaughn added Component: Developer Tools and removed Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug labels Mar 3, 2020
@bvaughn bvaughn self-assigned this Mar 3, 2020
@bvaughn
Copy link
Contributor

bvaughn commented Mar 3, 2020

@bvaughn bvaughn closed this as completed Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants