nbesli/pdf-merger-js

typescript error when importing PDFMerger from esm module in node js application.

Closed this issue · 3 comments

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

image

Link to code sandbox
https://codesandbox.io/p/live/69c640c0-9f51-4787-bcdd-8a8033d3131c

I have the same issue. Dynamic imports doesn't work

any updates on this?

A fix by @dhunganabibek has been released as v5.1.2 🚀
Please let me know if this is still an issue.