Have you configured it to work with https: https://laravel.com/docs/9.x/vite#working-with-a-secure-development-server
If that doesn't work, maybe try getting it working without https first.
Also, make sure you have a somewhat recent version of Node. The Vite docs say at least Node 12.2.0 (https://vitejs.dev/guide/#scaffolding-your-first-vite-project) but some plugins require a later version. You can do node -v to check. I'm using v16.13.2 and all works well.