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

upload .docx file to demo, error: TypeError: Cannot convert undefined or null to object #69

Open
En777 opened this issue Jan 17, 2023 · 1 comment

Comments

@En777
Copy link

En777 commented Jan 17, 2023

Uncaught (in promise) TypeError: Cannot convert undefined or null to object
at Function.assign ()
at _class._init (officeDocument.js:16:16)
at _class._init (officeDocument.js:6:3)
at _class.Part (part.js:31:8)
at _class (officeDocument.js:2:1)
at new _class (officeDocument.js:2:1)
at _class (document.js:9:23)
at new _class (document.js:2:1)
at parse (document.js:177:14)
at reader.onload (document.js:194:6)

@En777 En777 changed the title upload .docx file error: TypeError: Cannot convert undefined or null to object upload .docx file to demo, error: TypeError: Cannot convert undefined or null to object Jan 17, 2023
@En777
Copy link
Author

En777 commented Jan 17, 2023

same error as VolodymyrBaydalka/docxjs#58

I fix it at my fork , maybe it not best
En777/docxjs-word-preview@9eed2db

and my npm package
https://www.npmjs.com/package/docx-preview-lib

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

1 participant