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

Recognizing certain documents in Node.js produces error (Cannot read properties of undefined) #26

Closed
Balearica opened this issue Dec 10, 2024 · 3 comments

Comments

@Balearica
Copy link
Contributor

Using the latest version (0.5.0) recognizing certain inputs produces the following error. We should figure out what is causing this, and add an automated test to prevent it from happening again.

Error: TypeError: Cannot read properties of undefined (reading '0')
    at Worker.<anonymous> (/home/ben/repos/scribejs/node_modules/@scribe.js/tesseract.js/src/createWorker.js:283:15)
    at Worker.emit (node:events:518:28)
    at MessagePort.<anonymous> (node:internal/worker:263:53)
    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:826:20)
    at exports.emitMessage (node:internal/per_context/messageport:23:28)

@Balearica
Copy link
Contributor Author

First reported by @bennyzen in #25.

@Balearica
Copy link
Contributor Author

This issue should be resolved in release 0.5.1.

@bennyzen
Copy link

Yes, confirmed. It just works now. Awesome. Thank you so much, @Balearica.

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

2 participants