Angular 19 + SSR + Tesseract.js

Discussão em 'Angular' iniciado por Shtasi, Março 14, 2025.

  1. Shtasi

    Shtasi Guest

    Good day! I installed tesseract.js to Angular 19 project with SSR enabled, but when i go to component, which uses it like "const worker = await createWorker('eng');", then i get an error in application: Error when evaluating SSR module /main.server.mjs: __dirname is not defined at node_modules/tesseract.js/src/worker/node/defaultOptions.js

    Continue reading...

Compartilhe esta Página