-
-
Notifications
You must be signed in to change notification settings - Fork 787
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: Typescript error on having 0.29.0 #1515
Comments
try reinstalling node_modules |
I tried but still getting Error
|
With Bun, I still encountered these issues after removing node_modules and reinstalling dependencies, but adding to my package.json
fixed the issue (Bun pm's has some known issues with harmonizing dependencies' dependencies.) |
Can we close this as a Bun issue (with a workaround)? |
I'm using pnpm but getting this issue |
Can you provide a reproduction repo? I have this working properly |
@autosync-1 what worked for me was removing the node_modules directory AND removing the lock file, and then reinstalling, overrides were not needed after that |
What version of
drizzle-orm
are you using?0.29.0
What version of
drizzle-kit
are you using?0.19.13
Describe the Bug
In select with having gets an Typescript error i worked well in 0.28.6 vesion
typescript: Property 'having' is missing in type 'Omit<import("C:/Users/hitech/code/autosync_nest/node_modules/.pnpm/drizzle-orm@0.29.0_@types+pg@8.10.7_pg@8.11.3/node_modules/drizzle-orm/pg-core/query-builders/select").PgSelectBase<"suppliers", { ordersCount?: import("C:/Users/hitech/code/autosync_nest/node_modules/.pnpm/drizzle-orm@0.29.0_@types+pg@8.10.7_pg@8.11...' but required in type 'Omit<import("C:/Users/hitech/code/autosync_nest/node_modules/.pnpm/drizzle-orm@0.29.0_@types+pg@8.10.7_pg@8.11.3/node_modules/drizzle-orm/pg-core/query-builders/select").PgSelectBase<"suppliers", { ordersCount?: import("C:/Users/hitech/code/autosync_nest/node_modules/.pnpm/drizzle-orm@0.29.0_@types+pg@8.10.7_pg@8.11...'. [2741]
code
Expected behavior
No response
Environment & setup
No response
The text was updated successfully, but these errors were encountered: