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

Missing 'tslib' dependency #19

Open
ecampostrini opened this issue Nov 17, 2020 · 0 comments
Open

Missing 'tslib' dependency #19

ecampostrini opened this issue Nov 17, 2020 · 0 comments

Comments

@ecampostrini
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant