Skip to content

[TS2742] The inferred type of '...' cannot be named without a reference to ... #4448

@ryuujo1573

Description

@ryuujo1573

Related to microsoft/TypeScript#58743

It is not working if I try to export reducers/slices from a package.

Is this an actual TS issue?

Here's a possible reproduction

src/logic/client/user.ts:11:7 - error TS2742: The inferred type of 'userSlice' cannot be named without a reference to '../../../node_modules/@reduxjs/toolkit/dist/createSlice'. This is likely not portable. A type annotation is necessary.

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