While attempting to run an Angular app using linemanjs in Chrome on a Mac, I encountered the following error:
Uncaught RangeError: Maximum call stack size exceeded
An interesting observation is that the site functions properly on Chrome on a Windows machine as well as Safari on the same Mac.
I also tested running it on another Mac and received the same error message.
Upon debugging the code, it appears that the issue lies at line 1338 in the angular.js file:
var injector = createInjector(modules);
More specifically within the createInjector function - line 3603:
forEach(loadModules(modulesToLoad), function(fn) { instanceInjector.invoke(fn || noop); });
It seems that Chrome on a Mac struggles with the number of modules being loaded. How can this issue be resolved?
I attempted opening Chrome through terminal with arguments, but the problem persisted:
open -a Google\ Chrome.app --args --js-flags="--stack-trace-limit 999999"