v3 is out with Vite 4 support. This is a breaking change because of breaking type changes to the vite.Plugin
type. See v3 migration.
TLDR:
pnpm i vite@latest
And you're good to go.
Features
BREAKING CHANGES
- Vite 4 plugins have different types and cannot be used with Vite 3.