Everytime my client is getting these types of error we tried everything but no luck [closed]

failed to load config from C:UsersspandDesktopvirtualr-mainvite.config.js
error during build:
Error: ENOENT: no such file or directory, open ‘C:UsersspandDesktopvirtualr-mainnode_modulesreact-refreshcjsreact-refresh-runtime.development.js’
at Object.readFileSync (node:fs:441:20)
at file:///C:/Users/spand/Desktop/virtualr-main/node_modules/@vitejs/plugin-react/dist/index.mjs:17:6
at ModuleJob.run (node:internal/modules/esm/module_job:262:25)
at async onImport.tracePromise.proto (node:internal/modules/esm/loader:483:26)
at async loadConfigFromBundledFile (file:///C:/Users/spand/Desktop/virtualr-main/node_modules/vite/dist/node/chunks/dep-DyBnyoVI.js:66633:15)
at async loadConfigFromFile (file:///C:/Users/spand/Desktop/virtualr-main/node_modules/vite/dist/node/chunks/dep-DyBnyoVI.js:66474:24)
at async resolveConfig (file:///C:/Users/spand/Desktop/virtualr-main/node_modules/vite/dist/node/chunks/dep-DyBnyoVI.js:66082:24)
at async build (file:///C:/Users/spand/Desktop/virtualr-main/node_modules/vite/dist/node/chunks/dep-DyBnyoVI.js:65179:18)
at async CAC. (file:///C:/Users/spand/Desktop/virtualr-main/node_modules/vite/dist/node/cli.js:828:5)

there are files missing that do not allow the website to run dev or build.

Tried:
installing again vite and all dependencies but did not work