I'm having this issue only in typescript-go. I slimmed the repro:
The inferred type of 'combinedCodec' cannot be named without a reference to '.pnpm/moment@2.30.1/node_modules/moment'. This is likely not portable. A type annotation is necessary.ts(2742)
⚠ Error (TS2742)  | 
The inferred type of combinedCodec cannot be named without a reference to .pnpm/moment@2.30.1/node_modules/moment . This is likely not portable. A type annotation is necessary.
const combinedCodec: t.IntersectionC<[t.ExactC<t.TypeC<{ example: t.Type<moment.Moment, string, unknown>; }>>, t.ExactC<t.TypeC<{}>>]>