Skip to content

RangeError if too many files in directory tree #921

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

Closed
kmdavis opened this issue Jul 7, 2016 · 0 comments
Closed

RangeError if too many files in directory tree #921

kmdavis opened this issue Jul 7, 2016 · 0 comments
Milestone

Comments

@kmdavis
Copy link

kmdavis commented Jul 7, 2016

If the number of (nested) files in a subfolder exceeds 64k, file.getFilteredFileList throws an error at https://github.com/requirejs/r.js/blob/master/build/jslib/node/file.js#L131

{ [Error: RangeError: Maximum call stack size exceeded]
  originalError: [RangeError: Maximum call stack size exceeded] }

We encountered this after adding several new libraries to node_modules, resulting in an attempt to push 140k dirFiles onto the files array.

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

2 participants