microsoft / microsoft/TypeScript

tsc utility freezes

Open
#54,010 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Needs Investigation
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
telegram-cloud-photo-size-2-5352541729682737455-x

🙂 Expected behavior

tsc not freezes :)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.