Ionic with Vite?

Happy to share that this is here! Finally

It does not seem to be supported when building the project using AppFlow.

[07:50:42]: ▸ [ERROR] Invalid project type: react-vite (project config: ./ionic.config.json).
[07:50:42]: ▸ Project type must be one of: angular, react, vue, ionic-angular, ionic1, custom
[07:50:42]: ▸ Bad project type: undefined

“react-vite” seems to be missing from supported projects on Appflow.

Hey there, yeah we’re aware of this. The Appflow team suggests installing a copy of the ionic cli for your project until they can fix this.

The key for me was to include both ‘run’ and ‘–open’. If you leave out ‘–open’ the build will fail by using the wrong gradle.build. The command ‘ionic build’ executes the vite.cmd build. The command ‘ionic cap open android’ will launch the emulator in say Android Studio so you can run it. But of course we want live reload . The first documents I read just mention the command ‘ionic cap run android -l --external’ and this alone will run but try to grab the build.gradle under the android folder which will make you sad.