[Koha-bugs] [Bug 27651] Warning of missing Bootstrap source map

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Feb 8 12:36:35 CET 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27651

--- Comment #1 from Owen Leonard <oleonard at myacpl.org> ---
I think this is essentially a duplicate of Bug 26471. Several minified JS files
in Koha include comments which are intended to point to source map files if
they are available, for instance

//# sourceMappingURL=bootstrap.bundle.min.js.map

If you have the Chrome dev tools open, Chrome assumes you want it to look for
this map to help you with JavaScript debugging. When it doesn't find one it
tells you so. This isn't an error which has any consequence to the end user. I
don't know why Chrome chooses to warn you about missing source maps and Firefox
doesn't.

The options for addressing the error:

1. Don't address the error. It only appears if you are inspecting the source in
Chrome dev tools.

2. Modify each minified JavaScript file we get from third-party sources which
include sourceMappingURL.

3. Build our own minified JavaScript files for each JS library and include the
option to generate source maps.

My vote is #1, and WONTFIX.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list