wildskyf / TextareaCache

Browser Add-on: Automatically save the content in Textarea.
MIT License
66 stars 7 forks source link

"Source map error" message in Console #93

Open goozak opened 5 years ago

goozak commented 5 years ago

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:

goozak commented 5 years ago

Seems to have been a Firefox issue — message no longer appearing in FF 69.0.2...

goozak commented 4 years ago

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...

Kissaki commented 3 years ago

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.

drcheap commented 2 years ago

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.