[DRIZZLE KIT] Cannot convert undefined or null to object

[1] No config path provided, using default 'drizzle.config.ts'
[1] Reading config file '/workspaces/drizzle.config.ts'
[1] Cannot convert undefined or null to object
[1] tsx node_modules/drizzle-kit/bin.cjs studio exited with code 1
[1] No config path provided, using default 'drizzle.config.ts'
[1] Reading config file '/workspaces/drizzle.config.ts'
[1] Cannot convert undefined or null to object
[1] tsx node_modules/drizzle-kit/bin.cjs studio exited with code 1
Any idea what this error is about? I don't have an issue with the client, just drizzle-kit if it helps, this is my drizzle dependencies
"drizzle-kit": "^0.31.0",
"drizzle-orm": "^0.44.2",
"drizzle-seed": "^0.3.1",
"drizzle-zod": "0.8.2",
"drizzle-kit": "^0.31.0",
"drizzle-orm": "^0.44.2",
"drizzle-seed": "^0.3.1",
"drizzle-zod": "0.8.2",
And im running the studio like so: "dev": "concurrently \"vite dev --host --clearScreen\" \"tsx node_modules/drizzle-kit/bin.cjs studio\"",
5 Replies
KirbyTwister
KirbyTwister4mo ago
Is there any reason you launch studio like you do in your command? Seems to me like you're overcomplicating things
Ryguy10712
Ryguy107124mo ago
This happens to me in monorepos. Common culprit is mismatched versions of dotenv, pg, or the drizzle packages
dion
dionOP4mo ago
Hmm im using tsc because i’m using path aliases, and studio doesnt seem to be able to run previously if i didnt do that This problem suddenly appeared after i updated my packages but cant pinpoint which cos the error is really vague I see, ill check on that to make sure they’re the same
Ryguy10712
Ryguy107124mo ago
Yeah it defo sounds like a versioning issue. Do you have multiple workspaces? Packages/projects etc
dion
dionOP4mo ago
Nope! Just single svelte-kit project Any idea how we could check what dependencies drizzle packages needs? I do have dotenv and pg in my main deps Ok seems like i got it to work after using relative paths in one of my sub files. Really strange though

Did you find this page helpful?