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

RangeError: Maximum call stack size exceeded in version 0.3.0 #13

Closed
kirill-konshin opened this issue Feb 12, 2015 · 9 comments
Closed

Comments

@kirill-konshin
Copy link

PhantomJS 1.9.8 (Mac OS X) ERROR
  RangeError: Maximum call stack size exceeded.
  at /Users/dis/JEDI/amarosa_mod/src/app/node_modules/karma-sinon-chai/node_modules/chai/chai.js:3421

When I roll back to 0.2.x everything works well.

@kirill-konshin
Copy link
Author

Bump!!! 2 weeks -- no response...

@kevicency
Copy link
Owner

Sorry, I was on vacation. 0.3.0 updated chai from 1.9 to 1.10, maybe that is the issue but i cannot reproduce the error without additional informations.

@kirill-konshin
Copy link
Author

Previous error seems to be fixed, but here is the new one:

Error: Mismatched anonymous define() module: function () {
              return sinonChai;
          }

Code is located in sinon-chai.js file.

@kirill-konshin
Copy link
Author

        define('sinon-chai', [], function () { // added 'sinon-chai', []
            return sinonChai;
        });

Looks like this fixes the issue... Just give the module a name.

@kirill-konshin
Copy link
Author

I am using karma-requirejs plugin, by the way. The file which produces the error sinon-chai.js from sinon-chai package.

@kevicency
Copy link
Owner

I have no experience with requirejs / karma but I'll keep an eye on the other issue and see if they find a fix

@kirill-konshin
Copy link
Author

princed/karma-chai-plugins#21 (comment) Look at this PR for another similar package.

@jenifersilva
Copy link

Same until today using version 3.5.0

@bendialpad
Copy link

This is still happening on the latest version.

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

4 participants