Cannot Use commonjs lib @kubernetes/client-node
I want use below lib in vue project kubernetes-client-javascript
error encountered
this repo show this error https://github.com/SpringHgui/vue-k8s-client
eidit vite.config.ts
below to solve process is not defined
anoter error encountered
signals.js:29
Uncaught TypeError: Cannot destructure property 'signals' of '_os.constants' as it is undefined.
at normalizeSignal (signals.js:29:14)
at Array.map (<anonymous>)
at getSignals (signals.js:10:52)
at getSignalsByName (main.js:9:19)
at node_modules/human-signals/build/src/main.js (main.js:23:30)
at __require2 (chunk-DESW3ZOA.js?v=d7f33ba5:16:50)
at node_modules/execa/lib/error.js (error.js:2:25)
at __require2 (chunk-DESW3ZOA.js?v=d7f33ba5:16:50)
at node_modules/execa/index.js (index.js:8:19)
at __require2 (chunk-DESW3ZOA.js?v=d7f33ba5:16:50)
please ~