For anyone who is stuck with this. My issue was I was getting this even when I created a new expo app. However I found that I was doing
npx create-expo-app <appname>
instead of
npx create-expo-app@latest <appname>