Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

142
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda