NUXT_AUTH_EMPTY_SCHEMA: Schema generator returned no code
[NUXT_AUTH_EMPTY_SCHEMA] Schema generation returned empty result for sqlite
Why this happens
Better Auth's Drizzle schema generator returned an empty result for the selected dialect. There is no schema code for the module to write, so setup stops.
How to fix it
Check the Better Auth plugins and database options in defineServerAuth(), then regenerate the schema.
Check recent changes to defineServerAuth(), especially plugin schema definitions and database options. In a development branch, isolate plugin configuration changes and rerun preparation after each change:
pnpm exec nuxt prepare
If a minimal config still returns no code, report the diagnostic code, dialect, Better Auth version, and a minimal reproduction. Preserve the last working schema while investigating.
Verify the fix
Preparation should produce a non-empty schema with the auth tables expected for your configuration. Review the generated code before applying migrations.
See Inspect generated schemas or return to the error reference.