CDN Suddenly Breaks: "DataTable is not a function" and "Cannot read properties of undefined"

CDN Suddenly Breaks: "DataTable is not a function" and "Cannot read properties of undefined"

andhikadkandhikadk Posts: 1Questions: 0Answers: 0
edited July 29 in Free community support

Hi, I'm currently using DataTables via CDN and everything was working fine earlier today. However, I'm now seeing the following errors in my browser console:
Uncaught TypeError: Cannot read properties of undefined (reading 'defaults') — datatables.min.js
Uncaught TypeError: Cannot read properties of undefined (reading 'ext') — buttons.server-side.js
Uncaught TypeError: $(...).DataTable is not a function — jquery-3.7.0.min.js
Screenshot of the console:

These errors only appeared recently without any code changes, and it seems related to how the CDN is loading or ordering the scripts.

i use this cdn
https://cdn.datatables.net/v/bs4/jszip-3.10.1/dt-1.13.5/b-2.4.1/b-html5-2.4.1/b-print-2.4.1/sl-1.7.0/datatables.min.js

Both jQuery and the DataTables CSS are loading fine — the problem appears to be with the JavaScript bundle itself.

Replies

Sign In or Register to comment.