AntiPattern
Module Resolution Mismatches
module-resolution-mismatch
Client-only module boundaries and resolver precedence get applied differently depending on import entrypoints and build context, so code that works when imported directly fails from index.ts or production, breaking env access and causing bundler/type errors.