This error sometime means that
In dev mode it works because expo go shows you a directory of all your files, but in production , your app must have a defined entry point.
So you have to add an app/index.tsx file and update the app/_layout.tsx by adding the index screen . then in you app/index.tsx you can handle the redirection logic .
In my case that is my index.tsx and _layout.tsx