Uncaught TypeError: Cannot read property 'render' of undefined

Uncaught TypeError: Cannot read property 'render' of undefined

SturmSturm Posts: 4Questions: 3Answers: 1

This is the error message I am getting when I updated the admin theme of my web app project from Metronic 4.7.5 to Metronic 5.0.5:

It appears to be a conflict with jQuery at line 221 of my script, which is:

let renderNum = $.fn.dataTable.render.number(',', '.', 0).display;

I don't know why it worked fine in M4, since that used jQuery, too. Any ideas as to what to do to fix this?

This question has an accepted answers - jump to answer

Answers

  • SturmSturm Posts: 4Questions: 3Answers: 1
    Answer ✓

    Never mind. This issue has been resolved.

    The solution: Making sure that the DataTables JavaScript file was being loaded correctly.

    For more specific details: A breakdown of what happened is posted on Keenthemes' forums (the group who makes the Metronic admin theme).

    Sorry if I wasted anyone's time on such a silly issue.

This discussion has been closed.