Problem with TypeError: a.replace is not a function - in SearchBuilder default condition example.

Problem with TypeError: a.replace is not a function - in SearchBuilder default condition example.

forsworn24forsworn24 Posts: 2Questions: 1Answers: 1

When I select default column in conditions datatable 'startdate' and select condition 'after' or 'before' or any other, I get error in browser console: TypeError: resolved.replace is not a function

Although a calendar with date selection should be displayed. in this example everything works without errors

Please tell me what the problem is and how to fix it.

I googled the error, tried to fix it using the following links, but it didn’t work:

[https://datatables.net/forums/discussion/51791/uncaught-typeerror-this-replace-is-not-a-function]

https://datatables.net/forums/discussion/1586/datatable-is-not-a-function

Perhaps the problem is in ajax, or that the request is executed before the searchBuilder fields themselves are loaded.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,508Questions: 1Answers: 10,471 Site admin

    in this example everything works without errors

    Its hard to debug an example that doesn't show any errors :). Could you link to your page showing the issue please?

    Thanks,
    Allan

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

    It seems that I have already fixed it, installed all the latest version packages, as in the example, this caused an error. I started using older versions, which work correctly with each other.

     "datatables-plugs-column-search": "^1.0.1",
     "datatables.net-datetime": "^1.4.1",
     "datatables.net-dt": "^1.13.6",
     "datatables.net-plugins": "^1.13.6",
     "datatables.net-searchbuilder-dt": "^1.4.2"
    
  • allanallan Posts: 63,508Questions: 1Answers: 10,471 Site admin

    Cool - thanks for letting me know.

    Allan

Sign In or Register to comment.