Getting Type Error on build in ./node_modules/next-auth/src/core/errors.ts #7386
Unanswered
vectrobyte
asked this question in
Help
Replies: 1 comment 3 replies
-
Check if you have any imports from "next-auth/src". |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
version: 4.22.1
./node_modules/next-auth/src/core/errors.ts:11:11
Type error: No overload matches this call.
Overload 1 of 2, '(message?: string, options?: ErrorOptions): Error', gave the following error.
Argument of type 'string | Error' is not assignable to parameter of type 'string'.
Type 'Error' is not assignable to type 'string'.
Overload 2 of 2, '(message?: string): Error', gave the following error.
Argument of type 'string | Error' is not assignable to parameter of type 'string'.
Type 'Error' is not assignable to type 'string'.
9 | constructor(error: Error | string) {
10 | // Support passing error or string
Beta Was this translation helpful? Give feedback.
All reactions