Ionic build fails looking for main.js when it's main.ts

I upgraded my project from Ionic 5 to Ionic 7 and all the good things that come with it like Cap 5 and Vite. When I run npm run build it executes vue-tsc && vite build which works but when I try to do live reload stuff and run ionic cap run ios --livereload --external or even just ionic build I get:

Module not found: Error: Can't resolve './src/main.js' in '/Users/tclark/Github/kaiconcepts/jetfoil-mobile-app'

Not sure what is happening?

UPDATE: Ohhhh I fixed it by changing type in ionic.config.json to vue-vite. But of course AppFlow doesn’t support this so I guess I’ll be editing this file a lot.