Effect CommunityEC
Effect Community3y ago
8 replies
pula

Type Error when Passing Context to Effect

Hi, I'm new to the effect ecosystem and trying to use Context to inject services. I followed the documentation in https://effect.website/docs/context-management/services using "effect": "^2.0.0-next.34". However, I keep running into a type error when passing the Context to an Effect.

Argument of Effect => Effect is not assignable to Tag


Any advice would be appreciated 🙏
image.png
A fully-fledged functional effect system for TypeScript with a rich standard library
Managing Services – Effect
Was this page helpful?