Server session untyped
We're currently in the process of migrating an AuthJS monorepo to better-auth, but off the bat are experiencing the returned value of a server side
getSession
being untyped.
We were able to create a minimal reproduction using a fresh Turborepo which we can share if required.
Details from minimal repoduction:
Minimal TS config in order of inheritance.
6 Replies
Anyone else running into this?
it may help to just share the reproduction
i'm using better auth in a monorepo with no issues
We're finding it's on all repositories. I've forked
Bekacru/create-t3-turbo
(because it'd be a known working state w/ turbo) which is available at codylittle/create-t3-turbo
Within packages/auth/src/index.ts
we have the following:
The only changes made to the repository are updating the package manager used to match our prod systems
Additionally having ts config errors not liking
"module": "Preserve",
I have the same issue, it’s still unresolved for me, we manually typed it and moved on for now
So testing on a fresh install of windows right now, working completely fine
tried uninstalling all vscode extensions too - given its working on diff PC, I'm probably going to go with global dependency resolution somewhere