node:sqlite

Hi everyone, I'm facing this error when trying to use Vite with Better Auth: [vite] (ood_saas) warning: Automatically externalized node built-in module "node:sqlite" imported from "node_modules/.pnpm/better-auth@1.3.8_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/better-auth/dist/shared/better-auth.B8b3lep0.mjs". Consider adding it to environments.ood_saas.external if it is intended. but I'm not even using sqlite, I'm using postgres with drizzle, with Hono and cloudflare workers. if i remove the cloudflare() vite plugin it doesnt fail, but I need to use that in order to work. Any idea what can it be?
2 Replies
Alejandro Montes
Alejandro MontesOP2mo ago
For anyone facing the same issue, I was able to solve it adding this to my vite config:
No description
阿文
阿文2mo ago
I’m facing this issue as well. But im using Nextjs (>=15.3.0)

Did you find this page helpful?