Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

143
Views
Uncaught SyntaxError: The requested module './bundle.js' does not provide an export named 'Tesseract' when using Browserify with Tesseract.js

I'm trying to run Tesseract.js in a browser, so I'm using browserify to attempt to do so. I'm getting the error in the console

Uncaught SyntaxError: The requested module './bundle.js' does not provide an export named 'Tesseract'

Here's my test.html file

<!DOCTYPE html>
<html lang="en-US">
<head>
  <script type="module" src="scripts/test.js"></script>
</head>
<body>
</body>
</html>

and here's my test.js file in the scripts folder as followed by the readme on https://github.com/naptha/tesseract.js

import {Tesseract} from './bundle.js';
Tesseract.recognize(
    'https://tesseract.projectnaptha.com/img/eng_bw.png',
    'eng',
    { logger: m => console.log(m) }
  ).then(({ data: { text } }) => {
    console.log(text);
  })

I looked into the bundle.js file and noticed there wasn't any mention of export Tesseract, I'm wondering if I was supposed to do something else with browserifying it maybe? I used the command

browserify tesseract.js/src/index.js -o bundle.js
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!