Adding admin plugin causes "The inferred type of this node exceeds the maximum length the compiler"

When I add the admin plugin to my list of plugins it results in the error:
The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed
The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed
3 Replies
Amos
AmosOP5mo ago
I'm on 1.2.8 and I don't think it has anything to do with this specific plugin, just that it pushes it over the edge (if I remove other plugins, it goes back to normal for example)
Ping
Ping5mo ago
Can I see your tsconfig?
Harvey
Harvey4mo ago
I had the same issue, created an issue in Github with configs and version number details https://github.com/better-auth/better-auth/issues/3067
GitHub
TypeScript Error: "The inferred type of this node exceeds the maxim...
Is this suited for github? Yes, this is suited for github To Reproduce import { betterAuth } from 'better-auth' import { admin, organization } from 'better-auth/plugins' export cons...

Did you find this page helpful?