I encountered the same issue as you. I simply resolved it by running:
npx expo start --clear
and it worked