list.js icon indicating copy to clipboard operation
list.js copied to clipboard

Browser warning: Source map not available

Open datapolitical opened this issue 3 years ago • 1 comments

Using the module now hosted from cdnjs but safari and chrome both throw a warning that the source map file referenced in the comment isn't available: https://cdnjs.cloudflare.com/ajax/libs/list.js/2.3.0/list.min.js.map

Any idea what's going on?

datapolitical avatar Dec 30 '20 09:12 datapolitical

Having the same issue. Breaking things on Safari on MacOS. Chrome is working for me.

Browsers look for .map file for minified version of scripts but I haven't faced this issue in other libraries maybe because they have .map in the same dir.

We need to create .map and add in /dist or create it ourselves and host it. Haven't tried doing it yet.

Will try and update here but for long term, it is need to be added to the repository.


Update:

Use JSdelivr since it has mapped .map file on the CDN. The author needs to set default files so that this doesn't happen in the future. But this should work without a hitch. @javve https://www.jsdelivr.com/package/npm/list.js?path=dist

littlebigthings-dev avatar Jan 15 '21 11:01 littlebigthings-dev