Error when make build in site

TypeError: vite.createFilter is not a function
at /home/frappe/frappe-bench/apps/hrms/frontend/node_modules/@vitejs/plugin-vue/dist/index.cjs:2760:16
at ReactiveEffect.fn (/home/frappe/frappe-bench/apps/hrms/frontend/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js:928:13)
at ReactiveEffect.run (/home/frappe/frappe-bench/apps/hrms/frontend/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js:171:19)
at get value [as value] (/home/frappe/frappe-bench/apps/hrms/frontend/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js:940:109)
at Object.transform (/home/frappe/frappe-bench/apps/hrms/frontend/node_modules/@vitejs/plugin-vue/dist/index.cjs:2870:19)
at /home/frappe/frappe-bench/apps/hrms/frontend/node_modules/vite/node_modules/rollup/dist/shared/rollup.js:22826:37

Hi,

try: bench setup requirements , and build again.

If this is from a custom script, it may help to post the script.