The current application, some of them used require-jquery.js. Now I have completed the jQuery data table. It works fine when removing "require-jquery.js". But when I turn on require-jquery.js, I get the error message below:
Error: inconsistent anonymous define () method: function ($) {
See structure:
- jquery.min.js
- jquery.js required
- jquery.dataTables.js
And this:
tickerdashboardtable = $('#tickerdashboardtable').dataTable( {} );
I do not know how to use require-jquery.js. How to solve this problem.
source
share