react-data-export
react-data-export copied to clipboard
TypeError: s.t.match is not a function when trying to use style for Column heading
My reason: Getting above error when trying to use style attribute for column headings
Steps to reproduce:
const excelDetailColumns = [
{
value: '#',
widthPx: 160,
style: {
border: {
top: { style: 'thin', color: { rgb: 'FF000000' } },
bottom: { style: 'thin', color: { rgb: 'FF000000' } },
left: { style: 'thin', color: { rgb: 'FF000000' } },
right: { style: 'thin', color: { rgb: 'FF000000' } },
},
},
},
'Date',
'Status',
];
Lib Version: "react-export-excel": "^0.5.3",
+1
+1
+1
@reyansh25 Check your dependencies, you also need "xlsx" and "file-saver" packages to be installed. At least worked for me