You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tesseract.js version (version number for npm/GitHub release, or specific commit for repo)
5.0.2 Describe the bug
I have tried to use the library in a Next.js project using route handlers. I "copy-paste"ed the expamle from the README file, and got the following error when running: uncaughtException: Error: Cannot find module '.next\worker-script\node\index.js'
To Reproduce
Steps to reproduce the behavior: npx create-next-app@latest
create a route handler
initialize createWorker('eng')
read an image buffer from file, and pass it to worker.recognize()
Expected behavior
I expected the code to run
Device Version:
OS + Version: Windows 11
Node version Node v19.4.0
The text was updated successfully, but these errors were encountered:
Closing as it's unclear if this is an issue with Tesseract.js or the specific code and/or framework at issue. Will reopen if a reproducible example is provided.
Tesseract.js version (version number for npm/GitHub release, or specific commit for repo)
5.0.2
Describe the bug
I have tried to use the library in a Next.js project using route handlers. I "copy-paste"ed the expamle from the README file, and got the following error when running: uncaughtException: Error: Cannot find module '.next\worker-script\node\index.js'
To Reproduce
Steps to reproduce the behavior:
npx create-next-app@latest
create a route handler
initialize
createWorker('eng')
read an image buffer from file, and pass it to
worker.recognize()
Expected behavior
I expected the code to run
Device Version:
The text was updated successfully, but these errors were encountered: