i got this error when updating from SDK 49 to SDK 51. This error occurs on Android.
thanks for help.
Tried deleting node_modules and reinstalling but it didn't solve the problem
i had that king of error on my react native expo code.i do not know why but it started woking fine after i run:
npx expo start --tunnel
this helped to open global tunnel using ngrok and everithing woking fina now.