drizzle-kit tsconfig.json paths alias

Not a drizzle issue per-se, but running into an issue trying to make drizzle-kit work again by changing target to esnext. The database schema file references some other files using an alias defined in the
tsconfig.json
. Any advice on getting drizzle-kit to recognize this setting?

 "compilerOptions": {
    "target": "esnext",
    "paths": {
      "@/*": ["./*"]
    }
  }

schema.ts:
import { values } from "@/path/to/file";
export const table = sqliteTable("table", { value: text("value", { enum: values })})

$ drizzle-kit generate:sqlite
drizzle-kit: v0.19.13
drizzle-orm: v0.28.6

No config path provided, using default 'drizzle.config.ts'
Error: Cannot find module '@/path/to/file';
Require stack:
- /db/schema.ts
Was this page helpful?