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

RangeError: Maximum call stack size exceeded #233

Open
ChristianRaoulis opened this issue May 16, 2023 · 3 comments
Open

RangeError: Maximum call stack size exceeded #233

ChristianRaoulis opened this issue May 16, 2023 · 3 comments

Comments

@ChristianRaoulis
Copy link

I used ts-auto-guard to generate type guards for my api response types but it seems like the type guards cause typescript to crash.

More details here: vercel/next.js#49851

I there a way to workaround that?

@rhys-vdw
Copy link
Owner

It looks like it's an upstream error, so I don't know fi there's much we can do about it here.

Hey @Skyriis do you know which type is causing the crash? If so you can remove the ts-auto-guard:type-guard comment so that it's not processed.

@rhys-vdw
Copy link
Owner

rhys-vdw commented May 18, 2023

It looks like microsoft/TypeScript#53783 is already closed, so perhaps it can be fixed by updating TypeScript?

You could try updating the dependencies in this package and see if the problem goes away. If so, open a PR with the updates.

@ChristianRaoulis
Copy link
Author

Hey @Skyriis do you know which type is causing the crash? If so you can remove the ts-auto-guard:type-guard comment so that it's not processed.

Yeah i'll probably do that.

You could try updating the dependencies in this package and see if the problem goes away. If so, open a PR with the updates.

Updating the dependencies hasn't helped

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