-
Notifications
You must be signed in to change notification settings - Fork 42
Using with vanilla js ESM causes TypeError on console #89
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
Comments
I have the same issue I think. OPs fix also fixes this for me. |
Hi, what was the solution for this issue? I am having the same problem.. |
I have the same issue. OPs fix is also working for me. |
I would love if someone could submit a PR that fixes these import issues for ESM and CommonJS. I've tried a few times and it has remained broken for one type or another. |
@danomatic Is that to say the solution in #95 doesn't work for CommonJS as well? I'd be willing to give this greater attention if that wasn't sufficient. |
I am getting an TypeError to console from react-pdf-html when running it.
This is probably caused by:
react-pdf-html/src/parse.ts
Lines 10 to 11 in b6aa224
Everything works alright if I change it to the following:
related: #83
The text was updated successfully, but these errors were encountered: