Skip to content

TS2536: Type '"default"' cannot be used to index type 'Ts'. After upgrading to TS 3.1.1 #43

@mpsijm

Description

@mpsijm

I just tried upgrading my TypeScript app from TS 3.0.1 to 3.1.1. When compiling it with webpack, having rewiremock as one of our (dev-)dependencies, compilation breaks at this point:

    ERROR in [at-loader] ./node_modules/rewiremock/rewiremock.d.ts:122:66 
        TS2536: Type '"default"' cannot be used to index type 'Ts'.

Interestingly, when I compile with tsc, I do not get this error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions