mapProfileToUser throwing The inferred type of 'auth' cannot be named without a reference to '../../

I am using a monorepo using turborepo and when i use mapProfileToUser in the oAuth provider options i get this error:
The inferred type of 'auth' cannot be named without a reference to '../../../../node_modules/better-auth/dist/shared/better-auth.Bzjh9zg_'. This is likely not portable. A type annotation is necessary.ts(2742)


leading me to be unable to use this function otherwise i get some build errors, i know there is some work arounds but not something i would like to do
Was this page helpful?