Effect CommunityEC
Effect Community3y ago
6 replies
attila

Compilation error with Schema and Branded types requires manual type annotation

I've started seeing the following compilation error in my projects that use Schema and Branded types:
The inferred type of 'MyThing' cannot be named without a reference to '../../../node_modules/effect/Brand.js'. This is likely not portable. A type annotation is necessary.ts(2742)

This error forces me to annotate the types manually. How do you usually deal with this sort of stuff?
Was this page helpful?