Skip to content

TS2371 in exceljs >= 1.9.0 (Typescript) #773

Closed
@tsiegleauq

Description

@tsiegleauq

Version 1.9.0 introduced a new issue in exceljs/index.d.ts.

ERROR in node_modules/exceljs/index.d.ts(787,17): error TS2371: A parameter initializer is only allowed in a function or constructor implementation.

In an Angular (7) project, install exceljs 1.9.0 and add the following to tsconfig.json

"paths": {
  "exceljs": ["../node_modules/exceljs/dist/exceljs.min"]
}

use ng serve and see TS2371

Downgrading to 1.8.0 solves the problem

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