TypeError: Cannot read properties of undefined (reading 'writeFile') at writeFileAsync (xlsx.mjs:24045:13) #2895
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#2895
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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?
In the browser environment. When I call the writeFileAsync method to realize the asynchronous export of excel, he threw the following exception. Is it that I call incorrectly? How can I use the writeFileAsync method?

Currently,
writeFileAsync
is only really relevant for NodeJS, as it usesfs.writeFile
rather thanfs.writeFileSync
.In the browser, if you want "asynchronous export", use a web worker. Check the worker demo https://docs.sheetjs.com/docs/demos/worker#creating-a-local-file and take a look at the live demo to see how to organize the export (the live demo uses a ReactJS component but the same works with "vanilla JS" or any framework)