Just changing the version in package.json causes errors. Look at https://vite.dev/guide/migration for reference on how to migrate