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: Error loading source maps for devtools extension #20075

Closed
Friss opened this issue Oct 22, 2020 · 16 comments
Closed

Bug: Error loading source maps for devtools extension #20075

Friss opened this issue Oct 22, 2020 · 16 comments

Comments

@Friss
Copy link

Friss commented Oct 22, 2020

React version: 16.x.x

Steps To Reproduce

  1. Have latest React devtools installed in Chrome
  2. Open console and see warning about failure to load source maps.

Screen Shot 2020-10-22 at 12 12 23 AM

Screen Shot 2020-10-22 at 12 12 53 AM

Looks to be related to #19773

Link to code example:

The current behavior

Console logs about failure to load source maps

The expected behavior

No console logs because of the extension

@Friss Friss added the Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug label Oct 22, 2020
@hqwuzhaoyi

This comment has been minimized.

@yepyeel
Copy link

yepyeel commented Oct 22, 2020

I have the same warning in React^17.0.0 too

@bvaughn bvaughn added Component: Developer Tools good first issue Type: Bug and removed Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug labels Oct 22, 2020
@bvaughn
Copy link
Contributor

bvaughn commented Oct 22, 2020

Sorry about the hassle here. I'm not sure why Chrome is showing this warning, as the source map URLs are correct. If anyone would like to dig into this, I'd welcome the help.

@bvaughn
Copy link
Contributor

bvaughn commented Oct 22, 2020

@hqwuzhaoyi Your comment does not seem related to this thread. If you're seeing a problem with a component's props loading, please file a separate issue with repro instructions.

@bvaughn
Copy link
Contributor

bvaughn commented Oct 22, 2020

Looks like a potentially related CR bug from back in February: https://bugs.chromium.org/p/chromium/issues/detail?id=1052872

@bvaughn
Copy link
Contributor

bvaughn commented Oct 22, 2020

A simple fix for this might be to revert the changes from #19773 to files within packages/react-devtools-extensions (but leave the other packages with source maps enabled).

@sytranvn
Copy link
Contributor

@bvaughn I tried reverting the changes in packages/react-devtools-extensions and it fixed. Please help to review the PR #20079. Thanks.

@bvaughn bvaughn closed this as completed Oct 22, 2020
@Friss
Copy link
Author

Friss commented Oct 22, 2020

Thanks for the quick work @bvaughn @sytranvn

We've run into similar issues with our own chrome extension so no big deal :D

@danielpickett
Copy link

Still having this issue. It looks like my React DevTools extension is still on version 4.9.0.

image

How do I get the version with the fix that was merged above? Removing and re-adding the extension didn't work. Sorry for the rookie question, but I'm sure others will be landing here with the same question.

@bvaughn
Copy link
Contributor

bvaughn commented Nov 4, 2020

The fix has not been released. You're running the latest DevTools. Once this fix gets releasd, Chrome will update you.

@danielpickett
Copy link

Oh, I see. Thank you!

@joaomelo
Copy link

joaomelo commented Nov 5, 2020

I don't know if is of any help for fixing the bug, but anyhow sharing my experience, some of the messages did not appear anymore in Chrome after I right-clicked the React Dev Tool extension icon in the toolbar, clicked "manage extension" (I'm freely translating menu text here since my browser language is in Brazilian Portuguese), and then enabled "Allow access to files URLs."

@029A-h
Copy link

029A-h commented Nov 11, 2020

I don't know if is of any help for fixing the bug, but anyhow sharing my experience, some of the messages did not appear anymore in Chrome after I right-clicked the React Dev Tool extension icon in the toolbar, clicked "manage extension" (I'm freely translating menu text here since my browser language is in Brazilian Portuguese), and then enabled "Allow access to files URLs."

This unfortunately doesn't work for me.

  • Chrome: 88.0.4315.5 (Official Build) dev (64-bit)
  • fresh install of React Developer Tools
  • no other extensions

Console still polluted by:

DevTools failed to load SourceMap: Could not load content for chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/injectGlobalHook.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load SourceMap: Could not load content for chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/react_devtools_backend.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load SourceMap: Could not load content for chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/contentScript.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME

@bvaughn
Copy link
Contributor

bvaughn commented Nov 11, 2020

As I said above, the fix for this has not been released yet. Releasing DevTools takes a decent amount of time and I haven't had the time to publish an update yet.

@federico7marroquin
Copy link

be patient guys

@bvaughn
Copy link
Contributor

bvaughn commented Nov 12, 2020

Version 4.10 has been published to NPM and posted to Chrome/Firefox/Edge stores. Chrome usually takes a while to approve (hours, sometimes days).

@facebook facebook locked as resolved and limited conversation to collaborators Nov 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

9 participants