[DRIZZLE KIT] Cannot convert undefined or null to object
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
And im running the studio like so:
"dev": "concurrently \"vite dev --host --clearScreen\" \"tsx node_modules/drizzle-kit/bin.cjs studio\"",
5 Replies
Is there any reason you launch studio like you do in your command? Seems to me like you're overcomplicating things
This happens to me in monorepos. Common culprit is mismatched versions of dotenv, pg, or the drizzle packages
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
Yeah it defo sounds like a versioning issue. Do you have multiple workspaces?
Packages/projects etc
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