➜ Local: http://localhost:5173/
➜ Network: use --host to expose
➜ press h to show help
Kubernetes targetApiHost is https://138.197.92.32:6443
1:04:31 PM [vite] Error when evaluating SSR module /src/lib/database.ts:
|- ReferenceError: require is not defined
at eval (/Users/skiwheelr/ui/src/lib/database.ts:18:16)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async instantiateModule (file:///Users/skiwheelr/ui/node_modules/vite/dist/node/chunks/dep-e8f070e8.js:54405:9)
this is my code:
This is the error: