How to use Tesseract.js in a React app
I had the same issue, and then I had to dig a bit to have it working using the CDN.
Here is what I did, I hope this can help a bit as a workaround:
- add
<script src='https://cdn.rawgit.com/naptha/tesseract.js/1.0.10/dist/tesseract.js'></script>
in index.html inside<head></head>
- add
var Tesseract = window.Tesseract;
in App.js
Reference : https://github.com/naptha/tesseract.js/issues/134