Service Dependency Issue with PgClient in TypeScript
Why would my service be showing as still needing the PgClient dependency? Could it be to do with importing the service from another package?
const makeRunnable = (env: Env) => {
const pgClientLayer = PgClient.layer({
url: Redacted.make(env.HYPERDRIVE.connectionString),
transformQueryNames: String.camelToSnake,
transformResultNames: String.snakeToCamel,
debug: true
})
const a1Service = A1DBService.Live.pipe(
Layer.provide(pgClientLayer)
)
const runnable = honkAll.pipe(
Effect.provide(TracingAll),
Effect.provide(makeAppConfig(env)),
Effect.provide(FetchHttpClient.layer),
Effect.provide(Lock.All.pipe(
Layer.provideMerge(MainDatabase.Live),
)),
Effect.provide(a1Service),
withEnv(env)
)
}