npm install missing images
npm install missing images
After running npm install datatables.net-dt --save
, the folder in node_modules contains a css folder with a file inside along with package.json and Readme.md but no images
folder. This causes 404 errors as the sorting arrows are missing.
Upon inspecting the package.json file it seems that they aren't included:
"files": [
"css/jquery.dataTables.css"
],
If I am not mistaken, the distribution package is in https://github.com/DataTables/Dist-DataTables-DataTables and in that package.json there are five additional elements in the files
array (namely, the images). Is it possible that the package hasn't been republished to npm after commit 0a2886b6ee6f8789ff78b73e9f49c0f3865d477f
?
This question has an accepted answers - jump to answer
Answers
Hi,
You are absolutely correct. That the images weren't included in 1.10.10 was an error and although it has been fixed in the repo, there hasn't yet been another release of DataTables, so those changes have yet been made available on NPM.
I hope to publish another release of DataTables in early February - that will update the NPM packages.
Allan