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: Unexpected Warning "DevTools failed to load SourceMap" in Chrome #20130

Closed
xabra opened this issue Oct 29, 2020 · 1 comment
Closed

Bug: Unexpected Warning "DevTools failed to load SourceMap" in Chrome #20130

xabra opened this issue Oct 29, 2020 · 1 comment
Labels
Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug

Comments

@xabra
Copy link

xabra commented Oct 29, 2020

I get three warnings when React DevTools is installed in Chrome. Other people have reported this but I have not seen a good solution. (I dont use an ad blocker)

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

Google Chrome Version 86.0.4240.111 (Official Build) (64-bit)

React version:
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-router-dom": "^5.2.0",
"react-scripts": "3.4.3"

Also using Apollo Client

The current behavior

The above warnings are generated on every render for every page.

The expected behavior

No warnings

Files

----index.js file ----
import React from "react";
import { render } from "react-dom";
import { BrowserRouter } from "react-router-dom";
import {
ApolloClient,
InMemoryCache,
createHttpLink,
ApolloProvider,
} from "@apollo/client";

// Top level view. Does the setup of the Apollo Provider and renders the App
import App from "./App";

const link = createHttpLink({
uri: "http://localhost:4000",
headers: { authorization: localStorage.getItem("token") },
});
const cache = new InMemoryCache();
const client = new ApolloClient({
link: link,
cache: cache,
});

render( <ApolloProvider client={client}> <BrowserRouter> <div> <App /> </div> </BrowserRouter> </ApolloProvider>,
document.getElementById("root")
);

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

bvaughn commented Oct 29, 2020

I'm sorry you experienced this bug! 🙇

Looks like this problem was already reported though (#20091) so I'm going to mark this issue as a duplicate and close it.

Thank you~

@bvaughn bvaughn closed this as completed Oct 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug
Projects
None yet
Development

No branches or pull requests

2 participants