RowGroup 1.0.3 not working on NPM

RowGroup 1.0.3 not working on NPM

AthorcisAthorcis Posts: 2Questions: 0Answers: 0

The RowGroup 1.0.3 extension on NPM (https://www.npmjs.com/package/datatables.net-rowgroup) isn't working, probably because the script is not the same as the one on the CDN https://cdn.datatables.net/rowgroup/1.0.3/js/dataTables.rowGroup.js

Replies

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin

    In what way is it not working for you? It appears to install okay for me.

    Allan

  • AthorcisAthorcis Posts: 2Questions: 0Answers: 0

    I'm getting weird JS errors when using it but it doesn't matter: the main problem is that the js file for version 1.0.3 is not same on NPM and the CDN.

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin

    This is the CDN file and this is the file that npm will distribute. They appear to be identical with a diff.

    Which of the two is different for you?

    Allan

  • davideromaninidavideromanini Posts: 1Questions: 0Answers: 0

    Actually, the npm content is quite different and contains ES6 code breaking my build (need to be babelized). Moreover, the minified version is empty. Definitely the 1.0.3 npm package is broken.

    https://unpkg.com/datatables.net-rowgroup@1.0.3/js/

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin

    Got it! It looks like a dev version has been tagged by mistake. I'll package up a 1.0.4 without the latest dev changes.

    Allan

This discussion has been closed.