Version 1.3.31 and v1.4.0-beta.13 type inference error

I tried upgrading to both 1.3.31 and v1.4.0-beta.13 from v1.4.0-beta.6 as i wanted to test a fix that was made to organization plugin in https://github.com/better-auth/better-auth/pull/5337
The inferred type of 'IamProvider' cannot be named without a reference to '.pnpm/better-call@1.0.24/node_modules/better-call'. This is likely not portable. A type annotation is necessary. (ts 2742)
The inferred type of 'IamProvider' cannot be named without a reference to '.pnpm/better-call@1.0.24/node_modules/better-call'. This is likely not portable. A type annotation is necessary. (ts 2742)
Now I'm facing this issue. Both Version 1.3.31 and 1.4.0-beta.13 versions. Although better-call is not mentioned in peerDeps the typeinference still fails..
GitHub
fix(organization): compatibility with exactOptionalPropertyTypes ...
Fixes: #5119 Summary by cubic Make the organization plugin compatible with TypeScript’s exactOptionalPropertyTypes. Prevents type errors by making the inferred query type always an object; adds a...
1 Reply
Max
MaxOP19h ago
GitHub
Version 1.3.31 and v1.4.0-beta.13 type inference error requiring re...
Is this suited for github? Yes, this is suited for github To Reproduce Upgrade to version 1.3.31 or v1.4.0-beta.13 and you will see type inference errors like this: The inferred type of 'IamPro...

Did you find this page helpful?