question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'Illegal invocation' error

See original GitHub issue

This error has recently started appearing in the Chrome DevTools console when actions are emitted from the application.

Uncaught TypeError: Illegal invocation
    at derez (<anonymous>:2:5451)
    at derez (<anonymous>:2:6072)
    at derez (<anonymous>:2:6072)
    at derez (<anonymous>:2:6072)
    at Object.decycle (<anonymous>:2:6109)
    at Object.e.stringify (<anonymous>:1:9197)
    at tryCatchStringify (<anonymous>:1:18852)
    at stringify (<anonymous>:1:18960)
    at toContentScript (<anonymous>:1:20255)
    at <anonymous>:2:627

Further emitted actions are not captured or displayed by redux-devtools-extension. And actions can no longer be selected in the Inspector panel. Only notable environment change was Chrome update to 61.0.3163.100.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
zalmoxisuscommented, Nov 18, 2018

Should be fixed in last version as per https://github.com/kolodny/jsan/issues/13. Feel free to reopen the issue if it’s still relevant.

0reactions
vansosnincommented, Dec 12, 2017

I reproduced this error while using sentry for reporting errors. Check out my issue in their repo: https://github.com/getsentry/raven-js/issues/1170

They wrap all functions and I have a supposal that DevTools cannot handle these wrapped functions in some cases (check out issue above, I described how to reproduce the bug).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Preventing "illegal invocation" errors in TypeScript
Chromium browsers throw an "illegal invocation" error when calling a function whose this keyword isn't referring to the object where it ...
Read more >
"Uncaught TypeError: Illegal invocation" in Chrome
In your code you are assigning a native method to a property of custom object. When you call support.animationFrame(function () {}) , it...
Read more >
Uncaught TypeError: Illegal invocation in Ajax function
I'm trying to send a form to my handler, but I get an error "Uncaught TypeError: Illegal invocation". When I try to send...
Read more >
Uncaught TypeError: Illegal invocation - jQuery Forum
Hi, I am getting the above error and can't figure our why? kindly help.. This is my code: var formData = new FormData(); ......
Read more >
Getting the Error Illegal Invocation at Object - SitePoint
I'm learning Bootstrap 5 and I created a simple web page to test out the creation, opening, and closing of modals without using...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found