Type error: The inferred type of 'authClient' cannot be named...
What was reported:
Issue polarsource/polar#7956 (closed, 18 comments): ### Description (tl;dr) Types of the @polar-sh/better-auth seem to be messed up making builds fail. ### What is the expected behaviour? The code builds without throwing an error ### What errors or issues are you experiencing? Bumped better auth from 1.3.8 to 1.3.34 and wanted to bump the polar plugin too. We are currently on v1.1.0 and wanted to bump to 1.4.0 but that results in the following error ```bash Type error: The inferred type of 'authClient' cannot be named without a reference to '.pnpm/@polar-sh+checkout@0.1.14_@stripe+react-stripe-js@4.0.2_@stripe+stripe-js@7.9.0_react-dom@19.
What works:
[pieterbeulque (contributor)]: The authClient type error was fixed in @polar-sh/better-auth 1.6.1. If it persists, make sure Better Auth itself is on 1.6.4 or newer and reinstall your dependencies; the reporter confirmed it works after that.