Property '[IsDrizzleTable]' is missing in type
Hello!
I've just updated to [email protected] and I can't use drizzle-zod anymore (@0.5.1).
This is my code:
Gives me the following error:
What can I do?
10 Replies
Here's is the table itself:
have the same issue aswell
I have the same error too. Strangely its not a problem when its in my node app. But when in my Deno, imported via esm.sh then thats when it throws the error.
any help would be greatly appreciated 🙏
Looks like the relations() function expects a pgTable that has been updated its config to have the IsDrizzleTable field. But idk if im suppose to be using a different pgTable() when declaring the table. Or use pgTable() but then add somehow a IsDrizzleTable = true in its config 🤷♂️
The issue really is an intelisense thing, the querying works. But vscode thinks that the return type for the relations field is 'never'
The more i look at it, it might be a Deno intelisense issue...
aight well i switched running the vscode from my laptop to my desktop. And now there's no intelisense error. 🤷♂️ im an idiot, but lucky at the same time i guess
I'm not using deno
I have the same issue
@fanckush there's reported issues all over github about the vscode intelisense for Deno.
Which is a bummer because honestly thats the only hiccup i have with Deno. I love the concept of it but just the DX is suffering rn 😢
But in case you're using the denoland drizzle library. I would recommend you dont. and rather just import the version you want via esm (especially if you are using drizzle relations since the denoland drizzle highest version came out prior to the drizzle relations)
I'm currently getting the same error with a Hono cloudflare worker in a Turborepo