You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
void db seed cannot resolve @auth-schema imports in database schemas #872
Void 1.10.0 loads seed and schema modules without resolving tsconfig path aliases. A schema importing the generated auth tables through @auth-schema fails with:
Cannot find module '@auth-schema'
This affects schemas that reference auth users through foreign keys.
Reproduction
In a disposable Void project with auth enabled and .void/better-auth-schema.ts generated, configure:
Seed and schema modules resolve @auth-schema using the project's configured paths.
Actual
Module loading fails with Cannot find module '@auth-schema'.
Relevant implementation
Both seed and schema loading use importLocalModule() in packages/void/src/cli/db.ts. It creates jiti without alias configuration.
Could the loader resolve the project's tsconfig paths, including aliases such as @auth-schema and @schema, for both seed files and their imported schema modules?
Reproduced the resolution failure using the installed seed loader's jiti options in an isolated fixture. The relative import succeeds. No application database was reset or seeded.
Activity