5.5.0-dev.20240524 regression on "The inferred type of 'X' cannot be named without a reference" #58710
Labels
Bug
A bug in TypeScript
Domain: Declaration Emit
The issue relates to the emission of d.ts files
Recent Regression
This is a new regression just found in the last major/minor version of TypeScript.
🔎 Search Terms
cannot be named without a reference
🕗 Version & Regression Information
I also tried running the latest version
5.5.0-dev.20240530
and the error is still reported.⏯ Playground Link
No response
💻 Code
This file https://github.com/jgoux/acme/blob/main/apps/api/src/config/trpc.ts is reported with an error that didn't happen before
[email protected]
.You can try running the type-checking command in the root of the monorepo:
pnpm type-check
.🙁 Actual behavior
This error happens:
🙂 Expected behavior
The error shouldn't be reported.
Additional information about the issue
No response
The text was updated successfully, but these errors were encountered: