TypeError: carr[1].forEach is not a function #3102
Labels
No Label
DBF
Dates
Defined Names
Features
Formula
HTML
Images
Infrastructure
Integration
International
ODS
Operations
Performance
PivotTables
Pro
Protection
Read Bug
SSF
SYLK
Style
Write Bug
good first issue
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/sheetjs#3102
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I've check the documentation:
previously it was working, now it is not.
xlsx version:
"xlsx": "^0.18.5"
below is my code snippet:
`
// import
import xlsx from 'xlsx'
// implementation
let worksheet = xlsx.utils.json_to_sheet(data)
`
stack trace:
TypeError: carr[1].forEach is not a function at server/node_modules/xlsx/xlsx.js:23544:14 at Array.forEach (<anonymous>) at write_zip_xlsx (server/node_modules/xlsx/xlsx.js:23543:14) at write_zip_typeXLSX (server/node_modules/xlsx/xlsx.js:23758:10) at writeSyncXLSX (server/node_modules/xlsx/xlsx.js:23847:9) at Object.writeFileSyncXLSX [as writeFileXLSX] (server/node_modules/xlsx/xlsx.js:23921:9)
it was due to date time field, changed it to string, working fine now.
Can you share the data that was causing issues? You should be able to pass date objects:
https://jsfiddle.net/e8ygdcp6/
I'm using Lucid ORM which provides DateTime Type, maybe converting it JSDate() will work