drizzle-team / drizzle-orm

Headless TypeScript ORM with a head. Runs on Node, Bun and Deno. Lives on the Edge and yes, it's a JavaScript ORM too 😅
https://orm.drizzle.team
Apache License 2.0
23.54k stars 578 forks source link

[BUG]: `drizzle-zod` errors with latest version `0.31.0` #2416

Closed bruceharrison1984 closed 4 months ago

bruceharrison1984 commented 4 months ago

What version of drizzle-orm are you using?

0.31.0

What version of drizzle-kit are you using?

0.22.1

Describe the Bug

After upgrading to the newest version, all of my schema files are littered with errors:

[IsDrizzleTable] is declared here

image

Everything still works and compiles as expected, despite the errors.

If found this previous thread, but restarting the TS server does not correct my errors: https://github.com/drizzle-team/drizzle-orm/issues/1665

Expected behavior

I would expect no errors, or remediation steps to correct them.

Environment & setup

VSCode Windows

bruceharrison1984 commented 4 months ago

Clearing out all node_modules and package-lock.json files, then running npm i seems to have sorted it out.