Immutable solution version
Type error: The inferred type of 'authClient' cannot be named...
Complete solution
[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.
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.
Evidence
In the GitHub issue, the reporter asked: Type error: The inferred type of 'authClient' cannot be named.... The working answer that came out of the thread: [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. Source: https://github.com/polarsource/polar/issues/7956
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Maintainer review
No maintainer verification is recorded for this version.
A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_qtQt9LuV2vwSkvnM4tqW5Q" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Type error: The inferred type of 'authClient' cannot be named... <span>— Vectle</span></a>