Skip to content

[BUG] Cannot read property 'date1904' of undefined #1329

Open
@mouse9

Description

@mouse9

🐛 Bug Report

Using styles: cache option with ExcelJs.stream.xlsx.WorkbookReader produces error.

Lib version: 4.0.1

Steps To Reproduce

const workbookReader = new excel.stream.xlsx.WorkbookReader(fileReadStream, { worksheets: 'emit', styles: 'cache', sharedStrings: 'cache', hyperlinks: 'ignore', entries: 'ignore' });
    workbookReader.read();
    workbookReader.on('worksheet', worksheet => { 
         worksheet.on('row', (row) => {...}
     }

Above code will throw an error when the DD/MM/YYYY format date is given in the excel
e.g: 20/06/2020

The expected behaviour:

It should work fine with the given date

Possible solution :

Created a pull request to handle it: #1328

Other Inputs
Without styles:cache it works for DD-MM-YYYY format but treats it as string

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy