Setting up Vite

I’m having a very hard time getting vite to work with our hydrogen app. For context we are using remix (and deploying to oxygen on the Hydrogen sales channel for production), it was a clone of the demo store from early 2024 (Around February), we have kept hydrogen up to date but never integrated vite due to its experimental status. But as each new release of Hydrogen adds more and more flags I’ve decided to try to integrate it into our production build.

Running shopify hydrogen setup vite, then npm run dev crashes with a prompt to update the future flags, after doing so it still crashes but this time with no error messages or other prompts. Nothing happens, and I can’t figure out whats going wrong.

Any help would be greatly appreciated!

I’m curious if it’s even necessary to update to vite. Shopify’s documentation reassures that vite is supported in oxygen, but so far that doesn’t seem to be the case, even after updating all packages. There seems to be some kind of mismatch here, either there are more steps I need to take to upgrade thats missing from the documentation or hydrogen/oxygen isn’t ready for this yet.

Thank you everyone for your input and help on this