microsoft / microsoft/TypeScript
tsc utility freezes
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 111k
- Forks
- 14.3k
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 117
Description
Bug Report
⏯ Playground Link
Playground link with relevant code
🙁 Actual behavior
I have a project using graphql. Together with him I use a package for code generation. A large file with types is generated. Based on one of the types, I want to make a form in react-hook-form. It works great until you need to extend this type.
If you comment out the 12th line in the src/test file, then tsc will work, otherwise it freeze
when logs are turned on, the problem disappears

🙂 Expected behavior
tsc not freezes :)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked CodeSandbox and reproduce the freeze in src/test.tsx, comparing behavior with line 12 commented out. Investigate why enabling logs changes the result; done means tsc completes without freezing for the supplied example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- graphql, react, typescript
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100