Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit test runs in PhantomJS but in chrome throws error RangeError: Maximum call stack size exceeded #148

Open
karthikv-26 opened this issue Aug 9, 2017 · 3 comments

Comments

@karthikv-26
Copy link

Using module('templates'); in unit test case throws the below error for below chrome version.
Chrome 60.0.3112 (Windows 7 0.0.0)
RangeError: Maximum call stack size exceeded
at Object.invoke (bower_components/angular/angular.js:4718:19)
at bower_components/angular/angular.js:4526:62
at forEach (bower_components/angular/angular.js:321:20)
at Object.createInjector [as injector] (bower_components/angular/angular.js:4526:3)
at Object.WorkFn (bower_components/angular-mocks/angular-mocks.js:3120:52)

Same works in Phantom JS browser.

@bbmena
Copy link

bbmena commented Aug 23, 2017

Also seeing this issue with Chrome Version 60.0.3112.101 on Windows 10:

RangeError: Maximum call stack size exceeded at Object.invoke (lib/angular/angular.js:4771:19) at lib/angular/angular.js:4578:62 at forEach (lib/angular/angular.js:325:20) at Object.createInjector [as injector] (lib/angular/angular.js:4578:3)

Code works in Firefox as well as PhantomJS.

@jkordas
Copy link

jkordas commented Sep 13, 2017

The same situation with Chrome 61.0.3163.79 on Ubuntu 16.04.

@jkordas
Copy link

jkordas commented Sep 13, 2017

I found the cause of this bug. In my case it was html report file generated by eslint-html-reporter. I have accidentally added path with this file to files array in my karma config. It appears that karma-ng-html2js-preprocessor cannot handle this file while running in chrome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants