Comments (4)
@wshager I met the same problem when build a XLSX with "xlsx.build([{name: "mySheetName", data: sheetData}])" function, finnaly i found the reason is that every element in array sheetData is an Object not a array, when i change to array the problem is resovled.
from node-xlsx.
In that case wouldn't it be better to check for type? And either throw a predictable error or transform on the fly?
from node-xlsx.
@wshager For now, i just iterate through the array "sheetData" to convert the object into an array.
from node-xlsx.
i have the same poblem but with array of array for data. but with a more data (~30k rows).
logs:
==== JS stack trace =========================================
Security context: 0x26a78695
1: encode_cell [/home/termopt10/autotest/lps/tools/node_modules/xlsx/xlsx.js:~11451] [pc=0xf1888c9d] (this=0x2b898889 <an Object with map 0x2fc58e09>,cell=0x362a5fc1 <an Object with map 0x2fc6a815>)
2: buildSheetFromMatrix(aka buildSheetFromMatrix) [/home/termopt10/autotest/lps/tools/node_modules/node-xlsx/lib/helpers.js:~31] [pc=0xf18877b9] (this=0x26a080c9 ,data=0x263c2781 <JS ...
from node-xlsx.
Related Issues (20)
- `options` is required in type WorkSheet HOT 2
- When parsing a date, it returns the excel-date format HOT 2
- Question: Is it possible to add background colors to cells? HOT 3
- TypeError: input.replace is not a function HOT 1
- TypeError: Cannot set properties of undefined (setting 'name') HOT 1
- TypeError: Cannot read properties of undefined (reading 'length') HOT 4
- How to read cell with Hyperlink? HOT 2
- Numbers are not becoming numbers according to "General" format in Excel HOT 1
- can not parse excel file with the same content HOT 2
- Skip hidden rows while parsing HOT 1
- Update xlsx package because vulnerabilities HOT 9
- When I use Chinese as the sheet name, the generated file displays garbled sheet names HOT 1
- vulnerabilities tips still exists in release/0.22.0 HOT 6
- Does this package support xls format as well? HOT 1
- Provide ECMAScript module (ESM) bundle
- use data streaming to transmit
- URL/Links
- Implementing Cascading Dropdowns with node-xlsx
- Can't read codepages other than utf8
- Not support append data?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-xlsx.