question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't resolve 'react-query/persistQueryClient'

See original GitHub issue

Is there an existing issue for this?

  • I have searched the existing issues

Package Version

0.5.9

Current Behavior

If I install dependencies with pnpm and try to run the dev environment it throws the following error:

error - ../../node_modules/.pnpm/wagmi@0.5.9_w3nw2bpaojq3mlwhwp6lup3gdy/node_modules/wagmi/dist/wagmi.esm.js:5:0
Module not found: Can't resolve 'react-query/persistQueryClient'

Import trace for requested module:
./src/pages/_app.tsx

https://nextjs.org/docs/messages/module-not-found

Before, it didn’t do that and just worked fine.

I just figured out that 30min ago react-query@4.0.0 was released on npm. I guess this correlates somehow?

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:5
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

4reactions
jxomcommented, Jul 18, 2022

we are publishing a fix v soon 😃

4reactions
jxomcommented, Jul 18, 2022

Working on a fix.

For the meantime, you may need to follow @wottpal’s suggestion. Can do this for yarn too: https://classic.yarnpkg.com/lang/en/docs/selective-version-resolutions/#toc-how-to-use-it

Read more comments on GitHub >

github_iconTop Results From Across the Web

I was trying to install react-query. But it is not installed. How to ...
As suggested by the error message, you can try to delete your package-lock.json file to get rid of the warning.
Read more >
react-query - npm
Hooks for managing, caching and syncing asynchronous and remote data in React. Latest version: 3.39.2, last published: 5 months ago.
Read more >
Installation | TanStack Query Docs
You can install React Query via NPM, or a good ol' <script> via unpkg.com. NPM. bash. $ npm i @tanstack/react-query.
Read more >
Unable to install Tanstack Query · Issue #3793 - GitHub
Describe the bug Trying to install results in an error. npm i "@tanstack/react-query" Your minimal, reproducible example ?
Read more >
What I learned from React-Query, and why I won't use it again
Looking it up on NPM made it very clear — React-Query could not be ... I can't underemphasize this, because it is the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found