nextauthjs / nextauthjs/next-auth

SvelteKitAuth: No Call signature for Email in @auth/core/providers/email

Open
#6,497 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

triage
Dominant language
TypeScript
Stars
28.4k
Forks
4k
PR merge metrics
No merged PRs in 30d

Description

Environment

System:
OS: Linux 6.0 Pop!_OS 22.04 LTS
CPU: (8) x64 Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz
Memory: 2.70 GB / 7.60 GB
Shell: 5.8.1 - /usr/bin/zsh
Binaries:
Node: 18.12.1 - /usr/bin/node
npm: 9.2.0 - /usr/bin/npm
Browsers:
Firefox: 108.0

Reproduction URL

https://github.com/nextauthjs/sveltekit-auth-example

Describe the issue

this expression is not callable.
Type 'typeof import(".../node_modules/@auth/core/providers/email")' has no call signatures.ts(2349)

--> build error:
TypeError: vite_ssr_import_4.default.default is not a function at /home/.../src/hooks.server.ts:47:17 at async instantiateModule (file:///home/.../node_modules/vite/dist/node/chunks/dep-5e7f419b.js:52224:9)

How to reproduce
  1. Clone the repo
  2. Install the repo
  3. npm run dev
Expected behavior

expected build to complete without errors.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Clone the linked sveltekit-auth-example repository, install its dependencies, and run npm run dev to reproduce the error. Start at src/hooks.server.ts around line 47 and compare the @auth/core/providers/email import and usage; done means the build completes without the reported TypeScript and runtime errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
authentication, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.