I use js-xlsx library. I need to write an excel file. So when I defined a wb
variable as excel workbook and asked js-xlsx
to write it to same file
XLSX.writeFile(wb, 'out.xls');
I get an error at browser console:
require.js:900 TypeError: Cannot read property 'writeFileSync' of undefined
XLSX.writeFile turns to js-xlsx/dist/xlsx.js row 1340
_fs = require('f'+'s');
And when I paused it to debug, _fs is undefined, of cource. I can't see where I could find 'f' or 's' libs. Please help me to understand it.