Error TS4023 typically occurs when TypeScript is unable to properly name a type from an external ...

When building effect libraries, do I need to have Effect types be inlined?

I ask because for some reason, I'm trying to build a library on top of another effect library I've built and my dts fails when I try to, but only when I use that library. It has to do with how types are being used in effect.

Here's a sample error:
src/effect/api/CartDiscountsUpdate.ts(27,14): error TS4023: Exported variable 'make' has or is using name 'Channel' from external module "/node_modules/.pnpm/effect@3.13.4/node_modules/effect/dist/dts/Cause" but cannot be named.


Please let me know if you need any other information 😄 ! Thanks ahead of time!
Was this page helpful?