Illegal invocation when using View tree.
See original GitHub issueThis just started today. To my knowledge, nothing has been updated in my local dev environment. Chrome: Version 61.0.3163.100 (Official Build) (64-bit) ember-cli: 2.4.3 node: 6.11.3 os: darwin x64 (Mac OS Sierra 10.12.6)
While on the View Tree tab,
- If I mouse over any element, the following warning is logged on my console instead of highlighting the view/component on my web page.
VM119:92 Ember Inspector has errored.
This is likely a bug in the inspector itself.
You can report bugs at https://github.com/emberjs/ember-inspector.
Error message: Illegal invocation
Stack trace: TypeError: Illegal invocation
at Function.jQuery.access (http://localhost:4200/assets/vendor.js:6860:44)
at jQuery.access (http://localhost:4200/assets/vendor.js:6832:11)
at jQuery.fn.init.css (http://localhost:4200/assets/vendor.js:9469:10)
at Class._highlightRange (<anonymous>:3970:14)
at Class._highlightNode (<anonymous>:4448:12)
at Class.previewLayer (<anonymous>:3536:16)
at Object.apply (http://localhost:4200/assets/vendor.js:35964:18)
at Object.sendEvent (http://localhost:4200/assets/vendor.js:29451:28)
at Class.trigger (http://localhost:4200/assets/vendor.js:47264:25)
at <anonymous>:2799:16
- If I click on the magnifying glass button and mouse over any element on my web page, instead of highlighting the element and displaying what view/component it is, the following error is logged on my console:
Uncaught TypeError: Illegal invocation
at Function.jQuery.access (jquery.js:3505)
at jQuery.access (jquery.js:3477)
at jQuery.fn.init.css (jquery.js:6114)
at Class._highlightRange (<anonymous>:3970:14)
at Class.highlightView (<anonymous>:3946:12)
at HTMLBodyElement.<anonymous> (<anonymous>:3662:18)
at HTMLBodyElement.dispatch (jquery.js:4435)
at HTMLBodyElement.elemData.handle (jquery.js:4121)
Since these warnings and errors occur with just moving my mouse then they stack to hundreds quickly. And as I said earlier, this just started today. Yesterday it worked fine.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Why do I get "Illegal invocation" of this object? - Stack Overflow
Just need to get the base.$el tree into an array to send with $post. Can you help me show how it should look...
Read more >jQuery Error - Uncaught TypeError: Illegal invocation - YouTube
In this video tutorial I will show you how to solve jQuery error "jQuery Error - Uncaught TypeError: Illegal invocation ".
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 >[Answered]-AJAX POST request error - `Uncaught TypeError
If I try to do this, I get this error: Uncaught TypeError: Illegal invocation $(document).on('input', '#search-inp', (e) => { $.ajax({ type: 'POST', ...
Read more >TypeError: Illegal invocation $.post Code Example
Your datatype is not JSON, it's a FormData. And for jQuery to send a FormData, it needs… 2. $.ajax({. 3. type: "POST",. 4....
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
This is due to Chrome upgrade. They added a new property to ClientRect. For example,
const rect = el.getBoundingClientRect()
. Nowrect
has new property calledtoJSON
. And in ember-inspector’s older code, their is some incorrect jQuery usage:$(div).css(rect)
, this will trigger this bug.The fix is update the pane-0-0-0 for older Ember version. I’m thinking about to send a PR. But meanwhile, you could try to use this plugin: https://ipfs.io/ipfs/Qmbn9D5ajAx4f4ZrMFiEMjxXVCmvk3sZ2vumu7QP9qL8GB Just drag it directly to
chrome://extensions
@inkless sure, you’d need to PR to the ember-0.0.0-2.7.0 branch instead of the master branch (make sure you start by branching from ember-0.0.0-2.7.0 instead of master as well). Once merged, I will build it and upload to S3.