I'm trying to run or initiate script using a plugin called dataTables.js. I've managed to import the library using ES6 import statement along with the jquery dependency. When I tried to run or initiate the plugin I get an error as shown below
jQuery.Deferred exception: (0 , _jquery.default)(...).DataTable is not a function TypeError: (0 , _jquery.default)(...).DataTable is not a function
at HTMLDocument.eval (https://juwto.csb.app/src/index.js:13:37)
at j (https://juwto.csb.app/src/jquery.js:1977:29)
at k (https://juwto.csb.app/src/jquery.js:1983:19)
Sandbox Link - https://codesandbox.io/s/gracious-chaplygin-juwto?file=/index.html
I can't seem to find a proper solution or answer even though I managed to import the libraries properly
import $ from "./jquery";
import _dt from "./datatables";
$(document).ready(function() {
$("#table").DataTable({
paging: false,
bFilter: false,
bInfo: false
});
});
