exceljs / exceljs/exceljs

[BUG] worksheet addRows - undefined

Open
#2,950 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
15.5k
Forks
2k
PR merge metrics
No merged PRs in 30d

Description

## 🐛 Bug Report

Lib version: 4.4.0

## Steps To Reproduce

```javascript
import Excel from 'exceljs';
import { PassThrough } from 'stream';

const workbook = new Excel.stream.xlsx.WorkbookWriter({
stream: new PassThrough(),
useStyles: true,
useSharedStrings: true,
});

const worksheet = workbook.addWorksheet('My Sheet', {
pageSetup: { paperSize: 9, orientation: 'landscape' },
});

console.log({ addRows: worksheet.addRows });
```

## The expected behaviour:

addRows - must be function

## Possible solution (optional, but very helpful):

```javascript

```

Contributor guide

No contributing guide indexed for this repository

Research direction

The report centers on worksheet.addRows in the streaming WorkbookWriter setup shown in the reproduction. Start by tracing how workbook.addWorksheet creates the worksheet in the streaming API and compare the exposed worksheet methods. Done means addRows is available as a function for the shown setup and the reproduction no longer reports it as undefined.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.