Uncaught RangeError: Invalid array length #3043

Closed
opened 2023-12-12 10:16:05 +00:00 by limingyang-t4f · 1 comment

Using xlsx.write to write 50 columns and 46,000 rows of data results in an error when exporting to Excel, but exporting to CSV works fine.
The error message is:
Uncaught RangeError: Invalid array length
at Array.push () at utf8ToBytes (index.js:1720:1)
at byteLength (index.js:433:1) at fromString (index.js:230:1)
at from (index.js:134:1)
at push../node_modules/buffer/index.js.Buffer.from (index.js:149:1)

Using xlsx.write to write 50 columns and 46,000 rows of data results in an error when exporting to Excel, but exporting to CSV works fine. The error message is: Uncaught RangeError: Invalid array length at Array.push (<anonymous>) at utf8ToBytes (index.js:1720:1) at byteLength (index.js:433:1) at fromString (index.js:230:1) at from (index.js:134:1) at push../node_modules/buffer/index.js.Buffer.from (index.js:149:1)
Owner

That error points to an issue with a Buffer shim. If this is related to some integration with SheetJS CE, please take a closer look at how you are passing data (your integration code is likely using Buffer). If this is related to a SheetJS Pro build, send an email and we can take a closer look.

That error points to an issue with a Buffer shim. If this is related to some integration with SheetJS CE, please take a closer look at how you are passing data (your integration code is likely using Buffer). If this is related to a SheetJS Pro build, send an email and we can take a closer look.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sheetjs/sheetjs#3043
No description provided.