I encountered this today too and for me this problem was caused by an accidental import.
My editor auto imported something from "vite" that I didn't wanted to import.
(For me was it import { createServerHotChannel } from "vite";)
So maybe check your imports and clean those that aren't used.