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: Chrome DevTools failed to load SourceMap after upgrade to Chrome 86.0.4240.111 #20091

Closed
ghost opened this issue Oct 24, 2020 · 3 comments
Closed
Labels

Comments

@ghost
Copy link

ghost commented Oct 24, 2020

React DevTools version: 4.9.0-75726fadfd

Steps To Reproduce

  1. Install React DevTools into Chrome 86
  2. Observe Chrome errors loading source maps for React DevTools.

Link to code example:

None

The current behavior

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

The expected behavior

Show no errors.

Workaround

  • Disable JavaScript source maps in Chrome DevTools (Open Chrome DevTools, click three dots menu in upper right corner, find Settings under More Tools. Uncheck "Enable JavaScript source maps".)

Workarounds that don't work:

  • Remove all .map files in ~/.config/google-chrome/Default/Extensions/fmkadmapgofadopljbjfkapdkoienihi/4.9.0_0/build/.
  • Remove all .map files from ~/.config/google-chrome/Default/Extensions/fmkadmapgofadopljbjfkapdkoienihi/4.9.0_0/
  • Edit each .js file in ~/.config/google-chrome/Default/Extensions/fmkadmapgofadopljbjfkapdkoienihi/4.9.0_0/build/ to remove the line with //# sourceMappingURL=. This changes the hash of each file and Chrome will refuse to load the extension.

Other Notes

  • OS: Manjaro Linux
@ghost ghost added the Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug label Oct 24, 2020
@bvaughn
Copy link
Contributor

bvaughn commented Oct 24, 2020

I'm sorry you experienced this bug! 🙇

Looks like this problem was already reported though (#20075) so I'm going to mark this issue as a duplicate and close it. That issue has already been fixed and the fix will be released shortly.

@mstewio
Copy link

mstewio commented Feb 22, 2021

For anyone facing this issue, make sure you are initializing your icons (https://github.com/microsoft/fluentui/wiki/Using-icons).

Adding this snippet to the top of my App.tsx file fixed my problem.

import { initializeIcons } from 'office-ui-fabric-react/lib/Icons';

initializeIcons();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants
@bvaughn @mstewio and others