Deploying with latest release (1.52) - today’s error is:
RangeError: Maximum call stack size exceeded at Function.[Symbol.hasInstance] (<anonymous>) at WriteStream (/builds/[yada]/node_modules/graceful-fs/graceful-fs.js:217:14)
I think I’m going to have to update my deployment script to use the last stable version
Yup just changing the install serverless line in my CI script fixed it:
- npm install -g serverless
- npm install -g email@example.com
How to fix it?
Wrap your recursive function call into a -
Also, you can localize the issue by setting a breakpoint on RangeError type of exception , and then adjust the code appropriately.