Skip to content

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

Open
@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

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions