TypeScript Type Resolution Issue in Monorepo Setup with Effect Library
I'm trying to setup Effect into a monorepo (pnpm + turbo). I have a shared TS config and few local overrides (like
My packages (let's say "configuration") exports through the package.json:
Whenever I import:
But, anytime I'll use the imported definition, let's say:
The Effect using that error will now become
I believe this is a matter of configuration, I just don't really know where to start the investigation. Any previous experience or idea?
rootDir, outDir).My packages (let's say "configuration") exports through the package.json:
Whenever I import:
SystemPGError is in fact Data.TaggedError("SystemPGError"), and the resolution is ok.But, anytime I'll use the imported definition, let's say:
The Effect using that error will now become
Effect<PoolClient, any, never>. The TS compiler is losing track of the SystemPGError type and fallback to "any".I believe this is a matter of configuration, I just don't really know where to start the investigation. Any previous experience or idea?
