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
Current CDN Example Not Working #81
Comments
I just tried running your exact code snippet and it worked for me. Have you tried clearing your browser cache? |
Clearing browser data seems to have improved things, but now I'm still getting the latter error I did when trying to use worker.js:8474 Uncaught DOMException: Failed to execute 'postMessage' on 'DedicatedWorkerGlobalScope': An object could not be cloned.(…)(anonymous function) @ worker.js:8474respond @ worker.js:8706dispatchHandlers @ worker.js:8726(anonymous function) @ worker.js:8473 Additionally, it would be good to understand just why clearing browser data made a difference at all |
Appearantly this happens only when you trying access the page directly without a webserver. |
I am accessing the page directly without a webserver and am having the same issue.
It works fine on Firefox for Linux Mint |
Exactly @MacroChip, that's what i said, you need to access through a web server. |
@iwollmann Is that really the solution for Chrome? It works fine in Firefox without a web server. |
I really don't know, here I am using with chrome in this scenario... =( |
Hey I have exactly the same problem but I am getting another error.
And
|
Maybe you should try to request all the files from web server. For example, Apache, Tomcat. |
I meet the same error by using local file. |
worker.js:8475 Uncaught DOMException: Failed to execute 'postMessage' on 'DedicatedWorkerGlobalScope': Error: Uncaught ReferenceError: require is not defined could not be cloned. My trouble is same to you, @darth-cheney . |
Anyone found a solution? I still get this message, even when I put it on a webserver. Locally I cannot get this to work but with using a webserver (to circumenvent the Cross Origin errors in my app) to load the files gives me the error that Postmessage Object could not be cloned. |
I see the original error using Chrome Version 69.0.3497.100. Using a webserver (or extension) is not a solution to this issue since the official Tesseract.js page states: |
This is so sad that it doesn't work in chrome. It works in FF. |
Should be working with latest example. Feel free to reopen with more information. 😄 |
Hi. I'm trying to conduct a very simple test using just a single HTML file and by including the
tesseract.js
script using the CDN source in the documentation:My HTML file is simple:
But if I try to add an image, nothing happens in the console or anywhere else. This is also true if I clone the repository and instead load
tesseract.js
from thedist
directory.I see that the main (non-github) website for the project uses the CDN version
1.0.7
, so I tried using that source instead. It came to life and started reporting back progress, but then threw the following error:Am I just doing this wrong somehow?
(Using Chrome 54 in OSX 10.11.)
The text was updated successfully, but these errors were encountered: