-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build fails on latest Sveltekit 2 and @auth/sveltekit #10332
Comments
I have this exact issue as well with Kit version 1.30.4, Svelte version 4.2.12, and TS version 5.3.3. This is what's responsible: next-auth/packages/frameworks-sveltekit/src/lib/index.ts Lines 359 to 364 in e9a3e8e
_config.basePath is not defined here. |
Thanks! Good pointer. Solved it now by adding
The documentation says it's optional, so should probably have a default setting
|
thanks for reporting this, the issue happens when you have a |
Environment
System:
OS: macOS 14.3.1
CPU: (8) arm64 Apple M1
Memory: 45.52 MB / 8.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.18.2 - ~/.nvm/versions/node/v18.18.2/bin/node
npm: 10.5.0 - ~/.nvm/versions/node/v18.18.2/bin/npm
pnpm: 8.8.0 - ~/Library/pnpm/pnpm
Browsers:
Chrome: 122.0.6261.129
Safari: 17.3.1
npmPackages:
@auth/sveltekit: ^0.14.0 => 0.14.0
Reproduction URL
https://stackblitz.com/edit/sveltejs-kit-template-default-furqfa?file=README.md
or
https://github.com/subpublic/sveltekit2-auth-failing
Describe the issue
Build fails on latest sveltekit and @auth/sveltekit
How to reproduce
Installing the latest sveltekit 2 demo repo
Installing @auth/sveltekit
Follow usage instructions on
https://authjs.dev/reference/sveltekit
(adding auth.ts and hooks.server.ts)
Expected behavior
Build should succeed
The text was updated successfully, but these errors were encountered: