Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax error in IE 11 #6

Open
PLPatrick opened this issue Mar 6, 2020 · 0 comments
Open

Syntax error in IE 11 #6

PLPatrick opened this issue Mar 6, 2020 · 0 comments

Comments

@PLPatrick
Copy link

PLPatrick commented Mar 6, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant