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

TypeError: can't convert undefined to object #28

Closed
grantham500 opened this issue Jul 7, 2019 · 3 comments
Closed

TypeError: can't convert undefined to object #28

grantham500 opened this issue Jul 7, 2019 · 3 comments

Comments

@grantham500
Copy link

I just wanted to read a docx but cant even get the load function to work:

import docx4js from "docx4js"
docx4js.load(input).then(docx=>{
                console.log('dox',docx)
            }).catch(e=>{console.log('err',e)})

input:
ArrayBuffer { byteLength: 54248 }

What may be the problem?

@shellliii
Copy link

I ran into the same problem. Is there anything I could do to investigate further? What further information would be helpful?
I tried mammoth as well, which worked without problems, but I also want to give docx4js a try

@AveryanovS
Copy link

Have same problem. I compared docx file, that threw this and the one that didn't. Second had 'theme' directory with special xml inside. Maybe possible to make theme default if docx doesn't include it?

@lalalic
Copy link
Owner

lalalic commented Oct 18, 2021

try latest version

@lalalic lalalic closed this as completed Oct 18, 2021
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

4 participants