we are getting error logger.min.js?release=2024.07.00:2 Error: Mismatched anonymous define() module

we are getting error logger.min.js?release=2024.07.00:2 Error: Mismatched anonymous define() module

nitupunenitupune Posts: 3Questions: 2Answers: 0

Our project has Datatables 1.10.18

dataTables : "third-party/DataTables/datatables",
"datatables.net": "third-party/DataTables/DataTables-1.10.23/js/jquery.dataTables.min",
dataTableResponsive : "third-party/DataTables/dataTables.responsive",
dataTablesColReorder : "third-party/DataTables/ColReorder-1.5.0/js/ColReorderWithResize",

Datatables 1.10.18 had vulnerabilities so tried upgrading it to 1.10.23 after replacing all files in third-party with latest version
we are getting following error while loading the page

logger.min.js?release=2024.07.00:2 Error: Uncaught Error: Mismatched anonymous define() module: function(y){return k(y,window,document)}

http://requirejs.org/docs/errors.html#mismatch Script: http://localhost:8080/MajescoBilling/assets/js/third-party/require.min.js Line: 8 Column: 252 StackTrace: Error: Mismatched anonymous define() module: function(y){return k(y,window,document)}
http://requirejs.org/docs/errors.html#mismatch

Please suggest

Answers

  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin

    Per your previous thread that I replied to v1 is no longer supported.

    That said, if you can provide a minimal repo that demonstrates the issue I can take a look, but I would encourage you to update to v2 (ColReorderWithReize won't work with v2, and no version of that software is supported by myself).

    Also this blog post might be of interest for showing how to use RequireJS with DataTables.

    Allan

  • nitupunenitupune Posts: 3Questions: 2Answers: 0

    Thanks Allan,

Sign In or Register to comment.