Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82804

datatables.net-buttons-bs5 - Default.Buttons is undefined

$
0
0

Hi all,

I may just be crazy, but I'm having difficulty setting up datatables using node and bootstrap 5. Following the download on the website it says it should be as simple as pulling down the packages and running:

import DataTable from 'datatables.net-bs5';
import 'datatables.net-buttons-bs5';

However, doing so (without any additional code to instantiate the datatable) gives me the following error in the browser console:

Uncaught TypeError: datatables_net_bs5__WEBPACK_IMPORTED_MODULE_1__.default.Buttons is undefined

However, if I just use import 'datatables.net-buttons-dt'; then datatables works somewhat as expected - missing the BS5 stylings. Has anyone else come across this? Is it a bug? Or is there some other additional setup I need to do to get bootstrap 5 stylings on the buttons.

Thanks,


Viewing all articles
Browse latest Browse all 82804

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>