-
-
Notifications
You must be signed in to change notification settings - Fork 263
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
sql-drizzle build error #4125
Comments
Same problem :( |
Hello.
|
Here my reproduction |
# env.d.ts
import type { PgRemoteQueryResultHKT } from "drizzle-orm/pg-proxy";
declare interface PgRemoteDatabase<
TSchema extends Record<string, unknown> = Record<string, never>,
> extends PgDatabase<PgRemoteQueryResultHKT, TSchema> {}
declare module "drizzle-orm" {
export interface QueryPromise<T> extends Effect.Effect<T, SqlError> {}
}
# sql.ts
const DB: Context.Tag<PgDrizzle.PgDrizzle, PgRemoteDatabase> =
PgDrizzle.PgDrizzle as any; There are indeed some strange problems here, which can be temporarily bypassed in this way. |
@xesrevinu Thank you! You are amazing! |
@xesrevinu |
Have you tried to add this? |
What version of Effect is running?
3.11.5
What steps can reproduce the bug?
Hello, I am trying to build a small app using Effect and drizzle but I keep getting build errors. I tried to make a small app with Effect and drizzle but i get build errors.
A simple way to reproduce
What is the expected behavior?
I found to build bellow setting
tsconfig.base.json
Is there a way to build without changing the settings? Is there any problem with this workaround?
What do you see instead?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: