Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Datatables error after running npm run create-bundles #12103


User avatar
0
alliance225 created

I have the Asp.Net Core MVC Jquery version 12.3.0 I am trying to add a custom widget.

After doing necessary config I ran npm run create-bundles. After that, when loading the dashbaord I get these errors:

TypeError: Cannot read properties of undefined (reading 'defaults') pointing to: app-layout-libs.min.js /* Set the defaults for DataTables initialisation */ $.extend( true, DataTable.defaults, { dom: "<'row'<'col-xs-12 col-md-6'l><'col-xs-12 col-md-6'f>>" + "<'row'<'col-xs-12'tr>>" + "<'row'<'col-xs-12 col-md-5'i><'col-xs-12 col-md-7'p>>", renderer: 'bootstrap' } );


2 Answer(s)
  • User Avatar
    0
    oguzhanagir created
    Support Team

    Hi alliance225

    In which datatables.init.js file did you make this change? Finally, can you share the relevant location of the app-layout-libs.min.js file after using the yarn create-bundlescommand?

  • User Avatar
    0
    alliance225 created

    I am closing because we decided to ugrade from v12 to 13.3