typescript error when importing PDFMerger from esm module in node js application.
Closed this issue · 3 comments
dhunganabibek commented
import PDFMerger from "pdf-merger-js";
This import in esm module gives a typescript error.
Module '"/Users/bibekdhungana/Programming/open-source/pdf-merger-test/node_modules/pdf-merger-js/index"' has no default export
Link to code sandbox
https://codesandbox.io/p/live/69c640c0-9f51-4787-bcdd-8a8033d3131c
izmaelmag commented
I have the same issue. Dynamic imports doesn't work
mehamednews commented
any updates on this?
mojoaxel commented
A fix by @dhunganabibek has been released as v5.1.2 🚀
Please let me know if this is still an issue.