react-query-native-devtools icon indicating copy to clipboard operation
react-query-native-devtools copied to clipboard

Plugin 'React Query Devtools' is unavailable

Open hkeithk opened this issue 3 years ago • 14 comments

Hi @bgaleotti !

Trying to setup the plugin to work with flipper. Followed all the described setup steps including installing react-query-native-devtools (4.0.0) and in my application, setting it up in the App.js file to consume the queryClient, and installing flipper-plugin-react-query-native-devtools within flipper.

I was not able to find much documentation elsewhere on what may be going wrong, but the flipper-plugin is showing up as '..not supported by the selected application'

Any suggestions would be highly appreciated! Also happy to provide any other documentation as necessary

react: 18.2 react-native: 0.68 react-native-flipper": 0.164.0 react-query-native-devtools: 4.0.0 flipper desktop: 0.164.0

hkeithk avatar Oct 26 '22 20:10 hkeithk

Hi @hkeithk!

I just added a demo application https://github.com/bgaleotti/react-query-native-devtools/pull/96. Could you check if that works for you?

bgaleotti avatar Nov 02 '22 13:11 bgaleotti

Thank you very much @bgaleotti, will take a look ASAP and report back!

hkeithk avatar Nov 07 '22 19:11 hkeithk

There is sth wrong with npm.

When I look at the npmjs page, I see that the package version is v4.1.1.

However, when I try to install it on the terminal, I get v4.0.0

@bgaleotti , I wonder if you could republish your package. It might solve this issue.

image

image

efkan avatar Nov 21 '22 09:11 efkan

@efkan there's nothing wrong.

bgaleotti avatar Nov 22 '22 20:11 bgaleotti

WARN The native module for Flipper seems unavailable. Please verify that react-native-flipper is installed as yarn dependency to your project and, for iOS, that pod install is run in the ios directory.

    "dependencies": {
    "@tanstack/react-query": "^4.16.1",
    "expo": "~47.0.7",
    "expo-community-flipper": "^47.0.0",
    "expo-status-bar": "~1.4.2",
    "react": "18.1.0",
    "react-dom": "18.1.0",
    "react-native": "0.70.5",
    "react-native-flipper": "^0.174.0",
    "react-native-web": "~0.18.9"
  },
  "devDependencies": {
    "@babel/core": "^7.12.9",
    "@types/react": "~18.0.14",
    "@types/react-native": "~0.70.6",
    "react-query-native-devtools": "^4.0.0",
    "typescript": "^4.6.3"
  },
  "private": true
}

williamneves avatar Nov 22 '22 21:11 williamneves

@williamneves are you using https://docs.expo.dev/development/create-development-builds/?

bgaleotti avatar Nov 22 '22 23:11 bgaleotti

Hey @bgaleotti , the demo app worked great! Thanks for sharing and apologies on the delayed response.

I've tried to recreate the same experience on a personal project but have not had success. Likely some flipper configuration specific to my project.

Separately - also seeing the same warning message as @williamneves. We did not use the link above

hkeithk avatar Nov 23 '22 06:11 hkeithk

@hkeithk

Separately - also seeing the same warning message as @williamneves

Are you using expo?

bgaleotti avatar Nov 23 '22 11:11 bgaleotti

me too! 😭 image

intoday87 avatar Nov 30 '22 08:11 intoday87

@intoday87 did you run pod install as the warning says? Otherwise, please provide a repro repository.

bgaleotti avatar Nov 30 '22 15:11 bgaleotti

@bgaleotti
year! I tried clean pod install then( remove Pod folder and Podfile.lock and execute pod install) in my personal repo it was solved by upgrading react-native version(0.70) and react(18) but it is huge thing. you should try to reproduce failure by going back to previous commit :) https://github.com/intoday87/react-native-practice/commit/7ed55afadd7da178d6a5dc2e13333c1f9bc61708 My company's source is still version 0.66, so the problem still occurs.

dong-ho-lee avatar Dec 01 '22 02:12 dong-ho-lee

Thanks @dong-ho-lee will see if the v.70 update works on ours

hkeithk avatar Feb 09 '23 07:02 hkeithk

same issue

ferologics avatar Mar 29 '23 10:03 ferologics

Following the instructions here fixed the issue for me.

joshsmith-watchbox avatar Aug 16 '23 17:08 joshsmith-watchbox