-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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 #882
Comments
I'm getting the same thing:
This is only happening on one project. Other projects on the same system seem to lint fine. |
Same thing here. |
Same here as well |
I was saw this problem on a project I am working on as well with version
After adding some debugging information to Not sure if this is the actual problem or if I was just lucky that removing this unneeded folder solved my issue. |
I see the same issue on npm repo reproduced via travis https://travis-ci.org/npm/npm/jobs/251196118 |
Same here on Linux, npm 5.0.3, standard 10.0.2 and eslint-plugin-node 4.2.2 Happens on both node 7 and 8 |
View: #933. Search before post. edit: huh, that issue is older, okey. |
@vramana, @luispabon, @gingermusketeer i may help if post some files, or part of the files :) |
@tunnckoCore You can reproduce it with npm latest branch. The error triggers on Travis, so you can use Travis if you can't reproduce it on your machine. |
Okay, the empty project was somehow picking a file on the parent folder containing some dodgy code I reckon standard is looping through forever. I've managed to distill it all down to: let fs = fs || require('fs') Steps to reproduce:
It seems specific to the |
Now we can close this, @ematipico, @feross :) v4.2.3 is released by @mysticatea! 🎉 |
Cool, if folks are having issues still, reinstall |
I was trying set up standard for mocha.
$standard --env mocha
I'm getting the following error logs on console.
Error:
standard: Unexpected linter output:
RangeError: Maximum call stack size exceeded
logs:
at Array.values (native)
at findVariable (/usr/local/lib/node_modules/standard/node_modules/eslint-plugin-node/lib/rules/no-deprecated-api.js:141:42)
at findVariable (/usr/local/lib/node_modules/standard/node_modules/eslint-plugin-node/lib/rules/no-deprecated-api.js:145:24)
at checkDestructuring (/usr/local/lib/node_modules/standard/node_modules/eslint-plugin-node/lib/rules/no-deprecated-api.js:299:34)
at checkProperties (/usr/local/lib/node_modules/standard/node_modules/eslint-plugin-node/lib/rules/no-deprecated-api.js:373:21)
at checkVariable (/usr/local/lib/node_modules/standard/node_modules/eslint-plugin-node/lib/rules/no-deprecated-api.js:404:13)
at checkDestructuring (/usr/local/lib/node_modules/standard/node_modules/eslint-plugin-node/lib/rules/no-deprecated-api.js:301:21)
at checkProperties (/usr/local/lib/node_modules/standard/node_modules/eslint-plugin-node/lib/rules/no-deprecated-api.js:386:21)
at checkVariable (/usr/local/lib/node_modules/standard/node_modules/eslint-plugin-node/lib/rules/no-deprecated-api.js:404:13)
at checkDestructuring (/usr/local/lib/node_modules/standard/node_modules/eslint-plugin-node/lib/rules/no-deprecated-api.js:301:21)
The text was updated successfully, but these errors were encountered: