Is this suited for github?
Reproduction
Create a new SvelteKit 3 app with npx sv@next create.
Attempt to add better-auth with the official addon npx sv@next add better-auth and get error
Failed to install dependencies
│ npm error code ERESOLVE
│ npm error ERESOLVE could not resolve
│ npm error
│ npm error While resolving: better-auth@1.7.1
│ npm error Found: @sveltejs/kit@3.0.0-next.25
│ npm error node_modules/@sveltejs/kit
│ npm error dev @sveltejs/kit@"^3.0.0-next.0" from the root project
│ npm error peer @sveltejs/kit@"^3.0.0-next.0" from @sveltejs/adapter-auto@8.0.0-next.3
│ npm error node_modules/@sveltejs/adapter-auto
│ npm error dev @sveltejs/adapter-auto@"^8.0.0-next.3" from the root project
│ npm error
│ npm error Could not resolve dependency:
│ npm error peerOptional @sveltejs/kit@"^2.0.0" from better-auth@1.7.1
│ npm error node_modules/better-auth
│ npm error dev better-auth@"^1.6.24" from the root project
│ npm error better-auth@"1.7.1" from auth@1.7.1
│ npm error node_modules/auth
│ npm error dev auth@"^1.6.24" from the root project
│ npm error
│ npm error Conflicting peer dependency: @sveltejs/kit@2.70.3
│ npm error node_modules/@sveltejs/kit
│ npm error peerOptional @sveltejs/kit@"^2.0.0" from better-auth@1.7.1
│ npm error node_modules/better-auth
│ npm error dev better-auth@"^1.6.24" from the root project
│ npm error better-auth@"1.7.1" from auth@1.7.1
│ npm error node_modules/auth
│ npm error dev auth@"^1.6.24" from the root project
│ npm error
│ npm error Fix the upstream dependency conflict, or retry this command with --force or --legacy-peer-deps to accept an incorrect (and potentially broken) dependency resolution.
│ npm error
│ npm error
Current vs. Expected behavior
The peer dependency range should be widened to support SvelteKit 3
What version of Better Auth are you using?
1.7.1
System info
Latest versions of everything
Which area(s) are affected? (Select all that apply)
Package
Auth config (if applicable)
import { betterAuth } from "better-auth"
export const auth = betterAuth({
emailAndPassword: {
enabled: true
},
});
Additional context
No response
Is this suited for github?
Reproduction
Create a new SvelteKit 3 app with
npx sv@next create.Attempt to add better-auth with the official addon
npx sv@next add better-authand get errorCurrent vs. Expected behavior
The peer dependency range should be widened to support SvelteKit 3
What version of Better Auth are you using?
1.7.1
System info
Which area(s) are affected? (Select all that apply)
Package
Auth config (if applicable)
Additional context
No response