I get an error when the field with the number is an empty value.
Value sent to Number function of cells ["F3"] was not a number, it has type of object and value of null
Can this be fixed somehow?
An example of how I fill a table with numerical values:
var styleNumber = wb.createStyle({
font: {
color: '#000000',
size: 14,
name: 'Times New Roman',
},
alignment: {
horizontal: 'center',
vertical: 'top'
}
});
reports.forEach((report, index) => ws.cell(index + 3, 6).number(report._previousDataValues.code).style(styleNumber));