You can add the following line to your vite.config.ts file to resolve this issue-
fs.mkdirSync(baseFolder, { recursive: true });
Add this after the following statement-
const baseFolder =
env.APPDATA !== undefined && env.APPDATA !== ''
? `${env.APPDATA}/ASP.NET/https`
: `${env.HOME}/.aspnet/https`;