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

Maximum call stack size exceeded #124

Open
ondravondra opened this issue Mar 8, 2023 · 0 comments
Open

Maximum call stack size exceeded #124

ondravondra opened this issue Mar 8, 2023 · 0 comments

Comments

@ondravondra
Copy link

ondravondra commented Mar 8, 2023

When copying many files, this happens:

copyfiles --version
2.4.1

copyfiles -f ../../node_modules/twemoji/dist/svg/* ./lib/twemoji 
buffer.js:524
  return b instanceof Buffer;
  ^

RangeError: Maximum call stack size exceeded
    at Function.isBuffer (buffer.js:524:3)
    at chunkInvalid (/usr/lib/node_modules/copyfiles/node_modules/readable-stream/lib/_stream_readable.js:400:15)
    at readableAddChunk (/usr/lib/node_modules/copyfiles/node_modules/readable-stream/lib/_stream_readable.js:159:12)
    at YourStream.Readable.push (/usr/lib/node_modules/copyfiles/node_modules/readable-stream/lib/_stream_readable.js:149:10)
    at YourStream.Noms.push (/usr/lib/node_modules/copyfiles/node_modules/noms/index.js:14:47)
    at YourStream.nom (/usr/lib/node_modules/copyfiles/index.js:16:10)
    at YourStream.Noms.callRead (/usr/lib/node_modules/copyfiles/node_modules/noms/index.js:59:11)
    at cb (/usr/lib/node_modules/copyfiles/node_modules/noms/index.js:51:19)
    at YourStream.nom (/usr/lib/node_modules/copyfiles/index.js:17:5)
    at YourStream.Noms.callRead (/usr/lib/node_modules/copyfiles/node_modules/noms/index.js:59:11)


ls ../../node_modules/twemoji/dist/svg/*.svg | wc -l
3689

When I remove half the files, the command completes successfully.

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

1 participant