I encountered a perplexing error in Chrome and I am unable to identify its source: https://i.sstatic.net/f9Blt.png
The only clue I have is that after refactoring approximately 10,000 lines of code, this error surfaced. It occurred during the middle of the refactoring process in an Angular project. Despite my knowledge of handling promises in Angular and attempts to use an error handler, such as:
window.addEventListener('unhandledrejection', function (promiseRejectionEvent) {
console.log(promiseRejectionEvent);
console.log('here!!!!!')
});
window.onerror = function (promiseRejectionEvent) {
console.log(promiseRejectionEvent);
console.log('AHHHH')
};
Unfortunately, neither approach successfully caught the error. The origin of this recurring error remains a mystery to me, manifesting each time I reload the page.
Curiosity led me to visit the link indicated by the error in Chrome, but it was unhelpful in shedding light on the issue.
Interestingly, this error does not occur in Firefox.