Browser errros after generated datatable
Browser errros after generated datatable
Hi,
After I generated a datatable I get the following errors:
https://cdn.datatables.net/v/bs-3.3.7/jqc-1.12.4/pdfmake-0.1.27/moment-2.18.1/dt-1.10.15/af-2.2.0/b-1.3.1/b-html5-1.3.1/b-print-1.3.1/cr-1.3.3/ef-select2-1.6.2/ef-selectize-1.6.2/ef-title-1.6.2/fc-3.2.2/fh-3.1.2/kt-2.2.1/r-2.1.1/rg-1.0.0/rr-1.2.0/sc-1.4.2/se-1.2.2/bootstrap.min.css.mapFailed to load resource: the server responded with a status of 404 (HTTP/2.0 404)
https://cdn.datatables.net/v/bs-3.3.7/jqc-1.12.4/pdfmake-0.1.27/moment-2.18.1/dt-1.10.15/af-2.2.0/b-1.3.1/b-html5-1.3.1/b-print-1.3.1/cr-1.3.3/ef-select2-1.6.2/ef-selectize-1.6.2/ef-title-1.6.2/fc-3.2.2/fh-3.1.2/kt-2.2.1/r-2.1.1/rg-1.0.0/rr-1.2.0/sc-1.4.2/se-1.2.2/pdfmake.min.js.mapFailed to load resource: the server responded with a status of 404 (HTTP/2.0 404)
And the following warning:
Deprecation warning: moment().subtract(period, number) is deprecated. Please use moment().subtract(number, period). moment.min.js:6:6726
Does anyone know how to solve these errors and warnings?
This question has an accepted answers - jump to answer
Answers
https://stackoverflow.com/questions/21504611/what-are-the-map-files-used-for-in-bootstrap-3-1
drop the map files and switch to the regular css files.
The map files are being referenced by the comments in the source files. The download builder currently doesn't include the map file, but it also doesn't (yet) strip out the comments that reference the map files - hence the issue. If your browser is configured to get the map files (Chrome) then you'll get these 404 errors I'm afraid. There is no impact on functionality.
Can you show me the backtrace for that and the line of code that is calling
moment().subtract()
?Allan
Allan, the moment().subtract issue seems to be solved.