-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
graceful-fs crashes with "RangeError: Maximum call stack size exceeded" #6667
Comments
@ElinksFr does it happen when you're relying on global installation, or when you're invoking local one? If it's the local one, can you share content of dependencies sections in |
Cause for that is that most likely at Related issue in |
From our side, we faced the same issue 30 min ago. If i can add some info to it, our packages such as serverless-bundle, etc, are using an outdated version of graceful-fs. |
Solved by updating |
@hrnn Presented log is unrelated to this issue |
I started facing the same issue inside a CodeBuild a couple of hours ago. If I roll back to version
|
@vitorfs it's most likely caused by fact that at Ensure to update dependencies of the project and issue should be fixed |
~ Hat tip to ya good sir on pointing us in the right direction. We ran into this issue on a pipeline build and got us head scratching for a bit. If doing this via ADO or Gitlab, ensure that you change the global serverless install during the build.
|
My org also started getting this error today |
Same problem here. |
Also seeing this problem. Rolling back to 1.51.0 solved it for me. |
At first I did roll back to version Then I followed @medikoo tip, about I updated some packages and re-generated my |
I had the exact same issue. You'll need to roll back to a previous |
Nothing like testing in production. Jeez. |
I've updated main description with specific info on how this issue can be solved within a project |
@medikoo cool. For my case, I cant really do the fix coz I dont even have a project ready. I believe downgrading is the fastest way to solve my problems. |
We ran into this issue this morning and added the following to our package.json to resolve the issue for now (npm based):
|
@Manzalber thank-you. Rolling back to serverless 1.51.0 wasn't an option as I needed fixes in 1.52.0. |
I have global installation of latest serverless module and when ever I tried to create a new project with
|
@iamchathu from stack trace, it's clear that for some reason Yarn provides an older version of I believe that what would fix this, is clearing |
the frustrating thing is that That meant that our build broke, even though we hadn't done any updates to the package versions. |
Serverless does not install and is not responsible for installing dependencies of your project. It's |
Is there a workaround for installing serverless globally? Currently I just ran |
@dobesv I believe the workaround would be to nuke folder that contains all global installs, and install On our side what we can improve to upgrade to latest version of |
Just a quick update that the v1.52.2 release will provide a fix for this issue --> #6718 |
We were fixed on v4.2.1 due to critical bug in v4.2.2 (more info at #6667) but that's fixed with v4.2.3
We were fixed on v4.2.1 due to critical bug in v4.2.2 (more info at #6667) but that's fixed with v4.2.3
We were fixed on v4.2.1 due to critical bug in v4.2.2 (more info at serverless#6667) but that's fixed with v4.2.3
We were fixed on v4.2.1 due to critical bug in v4.2.2 (more info at #6667) but that's fixed with v4.2.3
The issue has been reintroduced in graceful-fs 4.2.7, 16 months ago. It's been slowing down or even crashing my builds. I've been able to fix it by downgrading to 4.2.6, I think we should lock to that version. |
@serg06 latest version of |
@medikoo Yes, that version has the same issue. The latest version I found without the bug is 4.2.6. |
@serg06 if it would be the case, again we would have tens of reports, while nobody reported the bug since then. |
@medikoo I was scared to make a bug report because there are already threads on this topic. I imagine there were others like me too. Nevertheless, at least my fix is now on this thread, so anyone who hits the issue can fix it themselves. |
❗️ NOTE FROM MAINTAINERS ❗️
This issue is result of relying on non-latest (buggy)
graceful-fs
version, either directly or through other (notserverless
) dependencies.serverless
on its own expects latest version ofgraceful-fs
to be installed.Crash happens when two versions of
graceful-fs
are initialized and one of them is non-latest (buggy) version.SOLUTION
Ensure project and its dependencies work only with latest
graceful-fs
version.It usually can be solved by nuking
node_modules
andpackage-lock.json
(oryarn.lock
) and reinstalling the project.When relying on Yarn package manager it can also be solved by adding following instruction to
package.json
and running
yarn install
(thanks @sheerun for this tip)This is a Bug Report
Description
RangeError: Maximum call stack size exceeded
while deployingDeploy without problem
Similar or dependent issues:
Additional Data
The text was updated successfully, but these errors were encountered: