TextareaCache
TextareaCache copied to clipboard
"Source map error" message in Console
Getting this message in the Console:
Source map error: TypeError: NetworkError when attempting to fetch resource.
Resource URL: moz-extension://1e7d8445-959e-4631-b019-6f0a887f1961/browser-polyfill.min.js
Source Map URL: browser-polyfill.min.js.map
I'm not trying to debug Textarea Cache. The extension is working fine, it's just annoying when I work with the Console.
Required:
- System OS: Windows 10
- Firefox version: 69.0.1
- Textarea Cache version: 4.2.1
Seems to have been a Firefox issue — message no longer appearing in FF 69.0.2...
So, I figured that the error shows up when I'm debugging a local web site, on http://localhost Unfortunately, that is precisely when I look at the console...
Very annoying indeed.
The file at fault is browser-polyfill.min.js
, which references browser-polyfill.min.js.map
which is not included in the addon.
I also noticed that there is a version mismatch between the src and min files in this repository root - v0.4.0 vs v0.3.1. This has always been the case since they were added in d5370f00dce263724e2b96b7935ad6afdb2f23f5.
It looks like both have been added manually.
It's been a couple of years, and this is still an issue. Even more annoying on a page which has an automatic refresh timer :-/
Could it be as simple as just adding in the map file? It can be found here.
Is this polyfill even needed still after the last few years of browser advancement? FWIW see that the official one is up to v0.10.0 now. If not updating, it might be good to at least sync up the version of the minified & original sources as @Kissaki mentioned.