Skip to content

[pnpm] How to deal with type error, claiming that tanstack-Types need to be referenced #102

Closed Answered by GregOnNet
GregOnNet asked this question in Q&A
Discussion options

You must be logged in to vote

👷🏻 Workaround
If anyone experiences the A type annotation is necessary.-Error, I would go for:

  • Make sure having

    • the latest version of tslib is installed.
    • @tanstack/query-core added to dependencies of the project.
    pnpm install [email protected]
    pnpm install @tanstack/[email protected]

Replies: 7 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@GregOnNet
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by GregOnNet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants