tesseract.js-angular-app icon indicating copy to clipboard operation
tesseract.js-angular-app copied to clipboard

Syntax error in IE 11

Open PLPatrick opened this issue 4 years ago • 0 comments

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.

PLPatrick avatar Mar 06 '20 09:03 PLPatrick