Illegal Invocation error when used in a web-worker
See original GitHub issueTop Results From Across the Web
dart-sass in Web Worker: `Error: Illegal invocation`
This happens when any importer (even a "noop" importer) is added. Executing this code on the main thread (using just require ) works...
Read more >"Illegal invocation" errors in JavaScript - Matias Kinnunen
An "illegal invocation" error is thrown when calling a function whose this keyword doesn't refer to the object where it originally did. In...
Read more >JavaScript Errors Try Catch Throw - W3Schools
The catch statement defines a code block to handle any error. ... Identifier) Error. A URIError is thrown if you use illegal characters...
Read more >Uncaught (in promise) TypeError: Illegal invocation
Uncaught (in promise) TypeError: Illegal invocation error using jQuery ajax code. To fix the error, try adding `processData: false` and ...
Read more >TestCafe v1.11.0 Released | Framework | Release Notes
TestCafe raises this error when at least one local or remote browser was not ... Fixed an error ( TypeError: Illegal invocation )...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Here’s a minimal reproducible example. Note that it only raises an error when browserified, but not when run in the Node. It’s a total edge-case due to the fact that MathJax calls
clearTimeout()
in some of the timer callbacks:Then call:
then open
example.html
in chrome, firefox, or safariand something like this will be displayed on the console:
Thanks for the investigation, but it really isn’t helpful to suggest lines to change. What we need is a small, preferably 10-20 line reproduction case that we can add to our test suite to ensure that this feature continues to work going forward, and use to debug the best way to proceed.