Skip to content

Upgrade to 2.X results in many "TS2589: Type instantiation is excessively deep and possibly infinite." errors #1668

@svrnwnsch

Description

@svrnwnsch

We upgraded recently our typescript project from 1.6.11 to 2.1.2. Since then we have many Typescript errors: "TS2589: Type instantiation is excessively deep and possibly infinite."

These errors mainly occur in place where we call. await object.$query().update({...}) or await Class.query().select('*', knex.raw('....'))

I guess this has somewhat to do with the new types introduced in version 2. In general the functionality seems to work as before. So we are just ignoring this specific error.
Maybe this issue is somehow related to: microsoft/TypeScript#34933?

We use Typescript: 3.7.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions