-
Notifications
You must be signed in to change notification settings - Fork 146
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
TypeError: Cannot read properties of undefined (reading 'type') #94
Comments
Could you possibly post the html string you used? looks like either a bug or an edge case |
Apologies for replying so late. This is my html string. Edit: |
@zees98 No worries, Its quite unlikely that the package failed with that html string because I am able to generate it without any issue on my laptop with react-example in the Could you please let me know what's the end result after clone this repository, and run the example and try it out? I am super curious about this issue. |
Thank you for the reply. |
@privateOmega My HTML string:
The altered method:
|
Oh just noticed that the same issue was reported in #92 , hence closing the issue to track it there. |
@zees98 I might possibly have figured out the issue, please follow the step in the other issue. |
Hello,
I am trying to use html2docx for a react project. But for some reason it keeps crashing with the error:
TypeError: Cannot read properties of undefined (reading 'type')
I have tried it with the example and then changed it. Both codes yield the same error.
This is my rendition of the code.
My enviroment:
macOS: 12.0 Beta
package version: 1.2.4
node version: v16.3.0
Thank you
The text was updated successfully, but these errors were encountered: