question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] worksheet.insertRow is not a function

See original GitHub issue

🐛 Bug Report

When trying to use insertRow (or insertRows) method I getting error: TypeError: worksheet.insertRow is not a function

Lib version: “4.0.1”

Steps To Reproduce

const workbook = new Excel.Workbook()
const worksheet = workbook.addWorksheet('demo')
worksheet.insertRow(1, [3, 'Sam', new Date()])

The expected behaviour:

https://github.com/exceljs/exceljs#insert-rows

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Alek-Scommented, Jun 22, 2020

Looks like they had a PR recently for insertRow in #1324 that was merged, probably just haven’t cut a new version tag yet to get it in since that went in 9 days ago, and the last version was 18 days.

0reactions
alubbecommented, Jun 30, 2020

Closing this, as we just need to wait for the release: https://github.com/exceljs/exceljs/issues/1362

Read more comments on GitHub >

github_iconTop Results From Across the Web

Insert row is not a function - Stack Overflow
The HTMLTableElement.insertRow() method inserts a new row in the table and returns a reference to the new row. Then insertRow() function ...
Read more >
Code does not work in function node but works fine when run ...
Hi friends, I am using ExcelJS to write array to excel. and it's working fine when i run it using node exceltest.js const...
Read more >
Updating Excel worksheet - Update Row or Insert Row issue
Updating Excel worksheet - Update Row or Insert Row issue ... As far as I know, tables in Excel with formula are not...
Read more >
Excel Fix: Insert Row Option Greyed out (9 Solutions)
The Insert Row option can become greyed out if the worksheet is protected. Select Review >> Unprotect Sheet to unprotect the worksheet. Hopefully,...
Read more >
exceljs - npm.io
It helps me know what features are desired or what bugs are causing the ... Use the second parameter of the addWorksheet function...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found