-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
The inferred type of 'auth' cannot be named without a reference #2123
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workinglockedLocked conversations after being closed for 7 daysLocked conversations after being closed for 7 days
Description
Is this suited for github?
- Yes, this is suited for github
To Reproduce
setup better-auth in express node application.
Current vs. Expected behavior
The inferred type of 'auth' cannot be named without a reference to '../../node_modules/better-auth/dist/shared/better-auth.BAfIsot3.js'. This is likely not portable. A type annotation is necessary.ts(2742)
const auth = betterAuth({
});
What version of Better Auth are you using?
^1.2.5
Provide environment information
- OS: Mac osWhich area(s) are affected? (Select all that apply)
Backend
Auth config (if applicable)
import { betterAuth } from "better-auth"
export const auth = betterAuth({
emailAndPassword: {
enabled: true
},
});Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinglockedLocked conversations after being closed for 7 daysLocked conversations after being closed for 7 days