The inferred type of authClient cannot be named without a reference to ../../../../node_modules/better-auth/dist/shared/better-auth.Bi8FQwDD . This is likely not portable. A type annotation is necessary.
I have added dom to tsconfig, cleared my node_modules and cache, updated to better-auth: ^1.2.4, as well.