Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dhunganabibek opened this issue Mar 13, 2024 · 2 comments

Comments

@dhunganabibek
Copy link
Contributor

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

@izmaelmag
Copy link

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

@mehamednews
Copy link

any updates on this?

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

No branches or pull requests

3 participants