Getting Javascript error inside plugin code

Getting Javascript error inside plugin code

shrewshrew Posts: 2Questions: 1Answers: 1

I'm trying to use the plugin described here to sort my table correctly by the date format I'm using: https://www.datatables.net/blog/2014-12-18

However, every time I load the page, I get the following error:

Uncaught TypeError: Cannot read property 'detect' of undefined on https://cdn.datatables.net/plug-ins/3cfcc339e89/sorting/datetime-moment.js

I don't know why I'm getting that error, because that's not even code that I wrote. I've followed all plugin instructions correctly by including both the Javascript files. Can anyone help? Thanks so much in advance, I've been going crazy trying to figure this out.

This question has accepted answers - jump to:

Answers

  • shrewshrew Posts: 2Questions: 1Answers: 1
    Answer ✓

    Never mind, I figured it out! I'm sorry, I don't know how to delete posts in this forum.

  • tshawtshaw Posts: 2Questions: 0Answers: 1

    I'm having the same problem, would you be able to share how you resolved the problem?

  • tshawtshaw Posts: 2Questions: 0Answers: 1
    Answer ✓

    Never mind, I also figured it out. For reference of anyone who also searches this error. In my case at least, this issue was due to my using an older version of datatables, this plugin requires a minimum of version 1.10 of datatables.

This discussion has been closed.