Skip to content

The inferred type of [...] cannot be named without a reference to [...] buildHooks.js #3983

Closed

Description

Porting from RTK Toolkit 1.9.7 to 2.0.1 I get the following problem for my RTK Query endpoints when exporting the generated hooks.

E.g.,

The inferred type of 'useLazyGetNlpQuery' cannot be named without a reference to '../../../../node_modules/@reduxjs/toolkit/dist/query/react/buildHooks.js'. This is likely not portable. A type annotation is necessary.ts(2742)

This error occurs on all endpoints, not just this one. I do not import or use buildHooks anywhere in my code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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