-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: Declaration EmitThe issue relates to the emission of d.ts filesThe issue relates to the emission of d.ts filesRecent RegressionThis is a new regression just found in the last major/minor version of TypeScript.This is a new regression just found in the last major/minor version of TypeScript.
Description
🔎 Search Terms
cannot be named without a reference
🕗 Version & Regression Information
- This changed between versions 5.5.0-dev.20240523 and 5.5.0-dev.20240524
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:
TS2742: The inferred type of 't' cannot be named without a reference to '../../node_modules/@trpc/server/dist/core/internals/config.js'. This is likely not portable. A type annotation is necessary.
3 export const t = initTRPC.create();
🙂 Expected behavior
The error shouldn't be reported.
Additional information about the issue
No response
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: Declaration EmitThe issue relates to the emission of d.ts filesThe issue relates to the emission of d.ts filesRecent RegressionThis is a new regression just found in the last major/minor version of TypeScript.This is a new regression just found in the last major/minor version of TypeScript.