javve / list.js

The perfect library for adding search, sort, filters and flexibility to tables, lists and various HTML elements. Built to be invisible and work on existing HTML.
https://listjs.com
MIT License
11.2k stars 896 forks source link

Browser warning: Source map not available #703

Open datapolitical opened 3 years ago

datapolitical commented 3 years ago

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?

littlebigthings-dev commented 3 years ago

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