Changes in scope hierarchy cause errors (NGI.InspectorAgent.inspectScope is not a function)
#146 opened on Oct 1, 2015
Description
I'm getting a TypeError: NGI.InspectorAgent.inspectScope is not a function in my current app, triggered at Scope.js line 62. After some initial digging, I think the issue might be a circular dependency here:
bootstrap.js --> App.js --> InspectorAgent.js --> Scope.js
^ ^ |
| | |
start *------------------*
AFAICT, NGI.InspectorAgent is an empty object within Scope.js, which seems to match with the dependency graph, but I'm also not very knowledgable in advanced module stuff, so I could be jumping to conclusions.
Haven't figured out the exact trigger or isolated it yet, but I think it's related to automatic unwrapping of $resource requests while the inspector is looking at them. If the above guess is correct though, it might be triggering on any cases where that watcher sees new children in an open scope?
Will try to come back to this in the next couple days with a minimal demo.