Skip to content
This repository was archived by the owner on Sep 22, 2023. It is now read-only.
This repository was archived by the owner on Sep 22, 2023. It is now read-only.

Missing 'tslib' dependency #19

@ecampostrini

Description

@ecampostrini

Hi @webschik,

I ran into the following error while trying to use the library in a clean environment:

[ERROR] 18:40:31 Error: Cannot find module 'tslib'
Require stack:
- tests/node_modules/mt940-js/lib/tags/closing-available-balance.js
- tests/node_modules/mt940-js/lib/parser.js
- tests/node_modules/mt940-js/lib/index.js
- tests/mt940-js.ts

It looks like the library depends on tslib but that dependency is not stated in package.json.
After a bit of research I found out that the tsconfig option importHelpers introduces code generation optimizations that depend on tslib. Since that option is enabled in mt940-js I think it may be necessary to add tslib as a dependency for the library to work out of the box. What do you think ?

Thanks for the work invested in this very nice library!

Regards,
Esteban

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions