DEV Community

Discussion on: Handling File Uploads with Apollo Server 2.0.

Collapse
 
ferslort profile image
Fernando Padilla

Hello, thank you very much for your contribution, but by following your recommendations as I have this problem on my console.

internal/fs/streams.js:150
function _openReadFs(stream) {
^

RangeError: Maximum call stack size exceeded

Collapse
 
dnature profile image
Divine Hycenth

I guess you're missing something somewhere. You can have a look at this repository to see how i did it. github.com/DNature/apollo-upload
Let me know if you still encounter another problem in the future.

Also, it's better to share your code via codesandbox or create a repository when trying to ask for help because it's difficult to debug a code you're can't see.

Best regards

Collapse
 
thomasgil92 profile image
ThomasGil

Hello, i had the same error, i just clone your repos => npm i=> npm run dev & npm start.
the file is correctly uploaded to the folder but nothing in the DB and this error appears in console.

Collapse
 
thomasgil92 profile image
ThomasGil

ok found where the problem come from for me. The f****g node version.
I don't have this error with node v12.
.*
Thanks to Divine and do the node update to v14 for now :)

Collapse
 
dnature profile image
Divine Hycenth

Cheers Thomas..
I might consider doing an upgrade to node v14 when it becomes stable. However, I tried node v14 months ago and i was having some issues with it so i won't recommend using node v14 until it becomes a LTS release.