0

I am trying to upgrade my react-native project from version 0.62.0 to 0.64.0

when i run the app on android, i get the following error:

Error: getPropertyAsObject: property "callFunctionReturnResultAndFlushedQueue" is undefined, expected an Object.

I have cleaned all the caches and run : npx react-native run-android && npx react-native start --reset-cache

Also when i open the chrome debugger i get the following error: React Native version mismatch. JavaScript version: 0.64.0 Native version: 0.62.2

  • It would be better, If u share what u have done to upgrade the version. If possible, you can share the doc link which u have followed. Also share your react and gradle version. – Dhevendhiran M Apr 20 '22 at 04:02
  • I just followed https://react-native-community.github.io/upgrade-helper/ versions: "react": "17.0.1", "react-native": "0.64.0", classpath("com.android.tools.build:gradle:4.1.0") I hope this helps. – khaled-hbaieb Apr 20 '22 at 23:18

1 Answers1

-1

I finally found a solution for this problem. In my project, i am using react-native-v8 (Runtime engine for react-Native). And in order to use this, you need to match your versions of v8-android && react-native-v8 with your new react-native version. I hope this helps the ones in need because it was frustrating me for a while.

  • this is not clear what the solution is – prog_24 Jan 31 '23 at 23:47
  • @prog_24 Are you using react-native-v8 in your react native project? – khaled-hbaieb Feb 01 '23 at 14:52
  • No. Oh I see, its a package. I think you should probably make that clear in your answer since the name sounds really similar to react native one might assume it was an extension – prog_24 Feb 01 '23 at 18:39
  • not at all clear what the solution is here. – AntiPawn79 Feb 19 '23 at 19:19
  • i kept this issue open in order to help any person that is stuck in upgrading the react native project version. My problem is that i was using another package [react-native-v8](https://github.com/Kudo/react-native-v8) and that package is depending on the exact react-native version accordingly. – khaled-hbaieb Feb 20 '23 at 15:56