'getPropertyAsObject: property -- react native from 0.62.0 to 0.64.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



Solution 1:[1]

I finally found a solution for this problem. In my project, i am using react-native-v8. 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.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 khaled-hbaieb