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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maximum call stack size exceeded #50195
Comments
You're advised to host the reproduction example on GitHub in a repository instead of uploading a sketchy zip file. |
You can now find the code also in https://github.com/MiladSadinam/Maximum-call-stack-size-exceeded This is the problematic file (though the whole project is needed, so the crash occurs): |
We would appreciate that - if possible - this issue get prioritized as it is blocking for us. |
Also experiencing this. It only happens for incremental compilation. The initial build always works. TypeScript version is 4.9.4. My project is big and complex and I'm having trouble figuring out what's causing the problem. Stack trace:
|
hey man, I am facing the same problem, I only get this error when I update my code and save, but it's not happening when I am starting the server for 1st time |
Hello everyone, I hope this message finds you well. I'm currently encountering an issue while attempting to build multiple TypeScript projects using Docker Compose. Each project has its own Dockerfile, and building them independently works without any problems. However, the problem comes in when I try to build them collectively using the To provide more context:
Error Message:
|
Bug Report
馃攷 Search Terms
Maximum call stack size exceeded,
馃晽 Version & Regression Information
I tried it on the following versions, all with the same error:
4.7.4
3.9.7
typescript@next
Please keep and fill in the line that best applies:
馃捇 Code
The error only occurs for the "whole" project. Compiling single files do not crash. Thus, I have removed some part of the project, still ensuring that the error still occurs. I hope it is ok that I upload part of our repo. I had a hard time reducing the problem to smaller code.
reproduction.zip
To reproduce it, go into the folder
reproduction
and executetsc --project tsconfig.json
.馃檨 Actual behavior
The typescript compiler crashes with the error
Maximum call stack size exceeded
.Some Background information:
We use a generator to generate typescript code. It produces multiple large files (~20K lines) and some heavily interconnected objects. This was ok until now. We changed the objects to use generic types, and from there the problem started.
I don't think the "structure" is the main problem, because some smaller generated files compile fine. It is just the largest of the files which is creating the problem. When I delete that one file, it compiles again.
馃檪 Expected behavior
Compiler shows a specific error instead of crashing.
The text was updated successfully, but these errors were encountered: