Bootstrap 5 from 4: TypeError: Cannot read properties of undefined (reading 'Modal')

Bootstrap 5 from 4: TypeError: Cannot read properties of undefined (reading 'Modal')

rdigiorgio@nabancard.comrdigiorgio@nabancard.com Posts: 2Questions: 2Answers: 0

When using the Editor activating new -- results in the following.

Datatables.min.js:60 Uncaught TypeError: Cannot read properties of undefined (reading 'Modal')
    at Object.open (datatables.min.js:60:2222)
    at R.Oe [as _nestedOpen] (datatables.min.js:55:40264)
    at R.Wt [as open] (datatables.min.js:55:25795)
    at Object.maybeOpen (datatables.min.js:55:33416)
    at datatables.min.js:55:20451
    at R._e [as _event] (datatables.min.js:55:35282)
    at R.ht [as create] (datatables.min.js:55:20372)
    at B.action (datatables.min.js:55:68029)
    at s (datatables.min.js:75:6726)
    at HTMLButtonElement.<anonymous> (datatables.min.js:75:7153)

The migration guide for Bootstrap was checked. Did not see anything relevant.

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,143Questions: 1Answers: 2,586
    Answer ✓

    I'm not seeing that error on our BS5 example, so it may be that in your case you have a mismatch of BS4 and BS5 sources. It would be worth checking all the sources to ensure they're all BS5. If you've done that already, could you PM @allan the link to your page and he can debug it,

    Colin

  • allanallan Posts: 61,714Questions: 1Answers: 10,103 Site admin

    We talked about this one by e-mail. It is resolved now :)

    Allan

Sign In or Register to comment.