https://stackoverflow.com/a/78534259/6899849
Happened to me in SDK 52. Make sure to clear the cache with npx expo start -c if the error persists after following the instructions above,
npx expo start -c