-
Notifications
You must be signed in to change notification settings - Fork 47.1k
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-devtools-extensions] Bug: Uncaught TypeError: Cannot read property 'sub' of undefined when navigating to plain-text pages #17832
Comments
Thanks for the detailed bug report! I think this may have been an unintentional side effect of #17739 😓 |
@bvaughn I would like to give it a try. |
@hardikmodha This issue is all yours! 😄 I've added the "good first issue (taken)" label so that others will know not to start work on the issue. If you change your mind about the issue, no worries! Just let me know so that I can remove the label and free it up for someone else to claim. Cheers! |
@bvaughn Hi. I am new to react and also would like to have a try. And actually I thought I have just finished the code and started to creating a PR... So may I take this? I have been struggling for it all night since I'm from the Eastern Hemisphere. |
@wfnuser If you have already done work on this, sure. No harm in also sharing what you've done. @hardikmodha and you and collaborate. (Feel free to tag me on a PR too.) |
This will my first time trying pull request to React. I hope it will work correctly. 😄😄 Chrome alerts
I'm wondering how to solve it correctly. And finally I only debugged and tested my code in Firefox, but I think it will work in Chrome too. |
Did you run If you only ran Otherwise, I don't know 😄 |
@wfnuser It's all yours. 😃 |
Thanks. 😄 |
Yep, I ran |
Just to clarify, the command is |
React Developer Tools: 4.4.0 f749045 (1/3/2020) from chrome webstore
Chromium: 81.0.4024.0 snapshot
Ubuntu: 18.04
Steps To Reproduce
https://reactjs.org
https://reactjs.org/robots.txt
The current behavior
Error is printed in console:
where
backend.js
is a link tochrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/backend.js
fmkadmapgofadopljbjfkapdkoienihi
is an ID of React Developer Tools: I verified by openingchrome://extensions/
and performing page search for this ID.The expected behavior
No errors
Notes
It's a convoluted usecase, but I thought it may help to catch bugs for more important ones.
I am not sure whether it's plain-text-ness of the page that is important, but that's how you can reproduce it.
The hypothesis is that dev tools do not expect HTML tree to disappear on navigation, or either extension enters a state where it cannot digest the plain text pages (and it probably shouldn't try).
P.S. Thanks for the refreshed extension, it makes dev experience so wonderful! ❤️The text was updated successfully, but these errors were encountered: