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

Error: NetworkError when attempting to fetch resource. #8

Open
WebMechanic opened this issue Sep 24, 2021 · 1 comment
Open

Error: NetworkError when attempting to fetch resource. #8

WebMechanic opened this issue Sep 24, 2021 · 1 comment

Comments

@WebMechanic
Copy link

Hey,

applies to the included "webextension-polyfill v.0.2.1" in your extension running in Firefox (all recent versions).

This extension constantly displays an error in the devtool console on every pageload 'cos the contained minified file browser-polyfill.js refers to a source map at the end, that is not available/provided:

Source map error: Error: NetworkError when attempting to fetch resource.
Resource URL: moz-extension://d16ad6d3-4448-41c4-9f70-77d1f14ed38f/browser-polyfill.js
Source Map URL: browser-polyfill.min.js.map

//# sourceMappingURL=browser-polyfill.min.js.map

First I disabled source maps in dev tools but the error message kept showing up and it took me ages to learn which extension eventually caused this annoyance -- the cryptic UUID wasn't helpful.
As much as I like the features the extension provides, I had to disable it for good because the "polution" was getting annoying esp. when I'm testing my own stuff.

I understand that the js file in question is from https://github.com/mozilla/webextension-polyfill and you're redistributing it. I presume you can remove this line from the source in your distribution so it would NO LONGER ask for sourcemaps ?!

Thanks.

@WebMechanic
Copy link
Author

same here and agree.
It's not the only extension that used this Mozilla Polyfill and they all produce this warning and polute the console.

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

No branches or pull requests

1 participant