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?
schema.ts:
2 Replies
This was a duplicate sorry about that. I was able to fix it by registering the paths manually in the drizzle config as suggested here: https://discord.com/channels/1043890932593987624/1125147482364584007/1154633287805976606
Not sure why the also present in tsconfig was failing but anyway that’s a separate topic.
It just depends on what tool you're using to run your drizzle-kit command (tsc, tsx, ts-node, etc)