You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compiling the same code with tsc 4.4.4 succeeds.
There have been a few reports of similar issues, but this is the difference between 4.4.4 and 4.5.2. It could be a different problem.
Bug Report
🔎 Search Terms
🕗 Version & Regression Information
When compiling the source that imports the @sinclair/typebox package using tsc 4.5.2
The following error will occur.
Compiling the same code with tsc 4.4.4 succeeds.
There have been a few reports of similar issues, but this is the difference between 4.4.4 and 4.5.2. It could be a different problem.
https://unpkg.com/@sinclair/[email protected]/typebox.d.ts
Probably, tsc 4.4.4 interprets this type definition file correctly, but tsc 4.5.2 does not.
⏯ Playground Link
No tsc 4.5.2 in playground.
💻 Code
Just import it.
🙁 Actual behavior
In tsc 4.5.2 (and 4.6.0-dev.20211117), receive the error "Type instantiation is excessively deep and possibly infinite.
🙂 Expected behavior
tsc 4.5.2 should compile as successfully as tsc 4.4.4.
The text was updated successfully, but these errors were encountered: