Creating a Layer from `Effect<Layer>` and encountering "Service not found" error

Is there a way to create a Layer from Effect<Layer>?

I tried Layer.unwrapEffect but when I run the code, I get "Service not found" even though there are no type errors.
Was this page helpful?