Every time I refresh my angular app today, the debugger (PAUSED ON DEBUGGER) keeps opening. Why is this happening?
The debugger is highlighting these lines of code (which are not mine - from core.js):
/**
* Instantiate all the directives that were previously resolved on the current node.
*/
function instantiateAllDirectives(tView, lView, tNode, native) {
const start = tNode.directiveStart;
const end = tNode.directiveEnd;
if (!tView.firstCreatePass) { // THIS IS WHERE THE DEBUGGER POPS UP
getOrCreateNodeInjectorForNode(tNode, lView);
}
attachPatchData(native, lView);
const initialInputs = tNode.initialInputs;
for (let i = start; i < end; i++) {
const def = tView.data[i];
const isComponent = isComponentDef(def);
if (isComponent) {
ngDevMode && assertNodeOfPossibleTypes(tNode, [3 /* Element */]);
addComponentLogic(lView, tNode, def);
}
const directive = getNodeInjectable(lView, tView, i, tNode);
attachPatchData(directive, lView);
if (initialInputs !== null) {
setInputsFromAttrs(lView, i - start, directive, def, tNode, initialInputs);
}
if (isComponent) {
const componentView = getComponentLViewByIndex(tNode.index, lView);
componentView[CONTEXT] = directive;
}
}
}
How can I resolve this issue? It was working perfectly fine yesterday.