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
Hi, I'm trying to import scribe using react but to no avail.
Tried doing it with a clean install, from scratch:
npx create-react-app my-app
then in my-app folder:
npm i scribe.js-ocr
which installs the module but when I try to import scribe, VS Code shows me the following text on hover:
"Could not find a declaration file for module 'scribe.js-ocr'. 'c:/projects/pdfreader/aws/bakvinnsla-pdfreader/frontend/node_modules/scribe.js-ocr/scribe.js' implicitly has an 'any' type.
If the 'scribe.js-ocr' package actually exposes this module, try adding a new declaration (.d.ts) file containing declare module 'scribe.js-ocr';ts(7016)"
Then when I try npm start I get a bunch of module not found errors.
Tried to do it clean since I got the same error on an already developing project that uses native react.
Anyways, props to you, have been comparing your project to tesseract and you give significantly better results.
All the best,
The text was updated successfully, but these errors were encountered:
I'm glad you're getting better results than with Tesseract.
Unfortunately, React Native is not supported. Significant components of Scribe.js are implemented in WebAssembly. Despite WebAssembly being universally supported in browser and server environments for years, React Native still does not have support for WebAssembly (see facebook/hermes#429). This limitation also applies to Tesseract.js (see naptha/tesseract.js#709).
ok thanks for the reply, I can run Tesseract on my app though, was just hoping for an upgrade. In any case I'll keep a look out and even if I feel like, revamp to make it compatible. :I
Hi, I'm trying to import scribe using react but to no avail.
Tried doing it with a clean install, from scratch:
npx create-react-app my-app
then in my-app folder:
npm i scribe.js-ocr
which installs the module but when I try to import scribe, VS Code shows me the following text on hover:
"Could not find a declaration file for module 'scribe.js-ocr'. 'c:/projects/pdfreader/aws/bakvinnsla-pdfreader/frontend/node_modules/scribe.js-ocr/scribe.js' implicitly has an 'any' type.
If the 'scribe.js-ocr' package actually exposes this module, try adding a new declaration (.d.ts) file containing
declare module 'scribe.js-ocr';
ts(7016)"Then when I try npm start I get a bunch of module not found errors.
Tried to do it clean since I got the same error on an already developing project that uses native react.
Anyways, props to you, have been comparing your project to tesseract and you give significantly better results.
All the best,
The text was updated successfully, but these errors were encountered: