augury icon indicating copy to clipboard operation
augury copied to clipboard

Unable to find context associated with [object HTMLDivElement] ; Zone: <root> ; Task: setTimeout ; Value: Error: Unable to find context associated with [object HTMLDivElement]

Open bilelkh opened this issue 4 years ago • 14 comments

Augury: 1.25.2 Date: Thu, 02 Apr 2020 01:38:48 GMT OS: Win32

Demo test application: -- Git repository for demo app showing the issue (optional but very helpful for difficult issues). -- If a code snippet will completely show the issue, please include it.

Description of issue: -- Include (clipped) screenshot images if possible.

Angular version (required): ???

Steps to reproduce:

Additional details: Unhandled Promise rejection: Unable to find context associated with [object HTMLDivElement] ; Zone: ; Task: setTimeout ; Value: Error: Unable to find context associated with [object HTMLDivElement] at loadLContext (core.js:25468) at Object.getDirectives (core.js:25451) at backend.js:61 at Object.e.matchingChildren (backend.js:61) at backend.js:61 at Array.map () at E (backend.js:61) at Object.e.transformIvy (backend.js:61) at backend.js:61 at Array.forEach () Error: Unable to find context associated with [object HTMLDivElement] at loadLContext (http://127.0.0.1:4200/vendor.js:70824:15) at Object.getDirectives (http://127.0.0.1:4200/vendor.js:70807:40) at chrome-extension://elgalmkoelokbchhkhacckoklkejnhcd/build/backend.js:61:25382 at Object.e.matchingChildren (chrome-extension://elgalmkoelokbchhkhacckoklkejnhcd/build/backend.js:61:25813) at chrome-extension://elgalmkoelokbchhkhacckoklkejnhcd/build/backend.js:61:25209 at Array.map () at E (chrome-extension://elgalmkoelokbchhkhacckoklkejnhcd/build/backend.js:61:25183) at Object.e.transformIvy (chrome-extension://elgalmkoelokbchhkhacckoklkejnhcd/build/backend.js:61:25336) at chrome-extension://elgalmkoelokbchhkhacckoklkejnhcd/build/backend.js:61:25096 at Array.forEach () api.onUnhandledError @ zone-evergreen.js:659 handleUnhandledRejection @ zone-evergreen.js:681 api.microtaskDrainDone @ zone-evergreen.js:674 drainMicroTaskQueue @ zone-evergreen.js:577 invokeTask @ zone-evergreen.js:485 ZoneTask.invoke @ zone-evergreen.js:470 timer @ zone-evergreen.js:2535 setTimeout (async) scheduleTask @ zone-evergreen.js:2556 scheduleTask @ zone-evergreen.js:386 scheduleTask @ zone-evergreen.js:211 scheduleMacroTask @ zone-evergreen.js:234 scheduleMacroTaskWithCurrentZone @ zone-evergreen.js:1118 (anonymous) @ zone-evergreen.js:2569 proto. @ zone-evergreen.js:1433 (anonymous) @ backend.js:61 e.__tryOrUnsub @ backend.js:16 e.next @ backend.js:16 e._next @ backend.js:16 e.next @ backend.js:16 e._next @ backend.js:16 e.next @ backend.js:16 e._subscribe @ backend.js:46 t._trySubscribe @ backend.js:16 e._trySubscribe @ backend.js:16 t.subscribe @ backend.js:16 t.call @ backend.js:16 t.subscribe @ backend.js:16 (anonymous) @ backend.js:61 C @ backend.js:61 (anonymous) @ backend.js:61 invoke @ zone-evergreen.js:365 run @ zone-evergreen.js:124 (anonymous) @ zone-evergreen.js:851 invokeTask @ zone-evergreen.js:400 runTask @ zone-evergreen.js:168 drainMicroTaskQueue @ zone-evergreen.js:570 invokeTask @ zone-evergreen.js:485 ZoneTask.invoke @ zone-evergreen.js:470 timer @ zone-evergreen.js:2535 setTimeout (async) scheduleTask @ zone-evergreen.js:2556 scheduleTask @ zone-evergreen.js:386 scheduleTask @ zone-evergreen.js:211 scheduleMacroTask @ zone-evergreen.js:234 scheduleMacroTaskWithCurrentZone @ zone-evergreen.js:1118 (anonymous) @ zone-evergreen.js:2569 proto. @ zone-evergreen.js:1433 (anonymous) @ backend.js:61 C @ backend.js:61 tt @ backend.js:61 (anonymous) @ backend.js:61 C @ backend.js:61 nt @ backend.js:61 (anonymous) @ backend.js:46 e.browserDispatch @ backend.js:46 (anonymous) @ backend.js:46 invokeTask @ zone-evergreen.js:400 runTask @ zone-evergreen.js:168 invokeTask @ zone-evergreen.js:481 invokeTask @ zone-evergreen.js:1596 globalZoneAwareCallback @ zone-evergreen.js:1633 postMessage (async) t.messageJumpContext @ content-script.js:1 (anonymous) @ content-script.js:1 (anonymous) @ content-script.js:1 (anonymous) @ content-script.js:1 Show 13 more frames

bilelkh avatar Apr 02 '20 01:04 bilelkh

Yeah I get this also on my first attempt to use Augury. It detects I'm using Angular v9.1.0 but then throws this error. However a trivial V8.2.14 application works fine so something in v9??

trfulcher avatar Apr 08 '20 06:04 trfulcher

This is related to v9 on forwards (I've reproduce this issue only in 9.0.0 on forwards), may it happen due to Ivy?

coder80s avatar Apr 08 '20 08:04 coder80s

This seems to be the same issue as #1456.

cwadrupldijjit avatar Apr 10 '20 18:04 cwadrupldijjit

I'm using chrome and get this in ng9 as well. I got tens of thousands of this same error in seconds and it caused developer tools to crash. Now everytime I open dev tools the errors start piling up. I had to uninstall the plugin.

s001dxp avatar Apr 29 '20 21:04 s001dxp

@s001dxp, I actually put a workaround in the linked issue if you haven't seen it already. I think the best experience would be to not have to worry about the bug, but that seems like it should be the best way in the meantime.

cwadrupldijjit avatar May 06 '20 15:05 cwadrupldijjit

Got it, thanks

s001dxp avatar May 06 '20 15:05 s001dxp

Just a question, Will there ever be a version of Augury to provide support for all the Angular 10 goodies? (read Ivy, etc). Please let me know so I can stay tunned or drop once for all every hope I have in this once upon a time magnificent tool.

WilldelaVega777 avatar Aug 26 '20 03:08 WilldelaVega777

@WilldelaVega777 #1483 . I think the officials are no longer maintaining the repo. They have other plans as you can see in the angular roadmap

SandeepBalachandran avatar Dec 21 '20 07:12 SandeepBalachandran

Getting this error on Angular 10

tndungu avatar Jan 29 '21 11:01 tndungu

Breaks on Angular v11.1.1

hikaru150s avatar Feb 02 '21 02:02 hikaru150s

Breaks on Angular v11.2.3

WuglyakBolgoink avatar Feb 27 '21 23:02 WuglyakBolgoink

Breaks on Angular v11.2.5. I think they have stopped updating!

di3mat avatar Mar 26 '21 09:03 di3mat

Breaks on Angular 11.2.7

Augury is dead

juanchavezlive avatar Apr 07 '21 02:04 juanchavezlive

Breaks on Angular v11.2.8

challengeromar97 avatar Apr 07 '21 12:04 challengeromar97