Skip to content

[pnpm] Error 2742 The inferred type of xxx cannot be named #1034

@vjau

Description

@vjau

With same code, just replacing tsc with tsgo gives me multiple TS 2742 errors
like these

error TS2742: The inferred type of 'router' cannot be named without a reference to '../../node_modules/@trpc/server/dist/unstable-core-do-not-import.js'. This is likely not portable. A type annotation is necessary.

Repro with instructions
https://github.com/vjau/tsgo-error

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions