tesseract.js-angular-app
tesseract.js-angular-app copied to clipboard
Syntax error in IE 11
Hi Jerome,
I installed Tesseract.js on an Angular project and when I open Internet Explorer 11, I have a white page and a syntax error on :
const recognize = async (image, langs, options) => {
const worker = createWorker(options);
await worker.load();
await worker.loadLanguage(langs);
await worker.initialize(langs);
return worker.recognize(image)
.finally(async () => {
await worker.terminate();
});
I target es5
in my tsconfig.json
:
"target": "es5",
"lib": [
"es2017",
"es6",
"dom"
]
It seems that the library is not transpiled.
I opened the same issue here : tesseract.js/issues/425.
Thank you in advance for taking the time to answer my problem. Cheers, Patrick.