Giter Club home page Giter Club logo

Comments (4)

jude-liu avatar jude-liu commented on July 19, 2024

@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.

wshager avatar wshager commented on July 19, 2024

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.

jude-liu avatar jude-liu commented on July 19, 2024

@wshager For now, i just iterate through the array "sheetData" to convert the object into an array.

from node-xlsx.

dotob avatar dotob commented on July 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.