You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using Next Auth in a turbo mono repo but am facing a ts issue.
The auth config is placed under a package auth so that it can be reused across other packages and apps. However, when I import the config in an app, I get a TS error saying:
The inferred type of 'signIn' cannot be named without a reference
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am using Next Auth in a turbo mono repo but am facing a ts issue.
The auth config is placed under a package
auth
so that it can be reused across other packages and apps. However, when I import the config in an app, I get a TS error saying:The inferred type of 'signIn' cannot be named without a reference
The
auth.ts
package file:./packages/auth/src/auth.ts
The
auth.ts
file in the root of my next appI am now importing this config in a next app, in the
auth.ts
file in the root like this:./apps/app/auth.ts
But am getting this type error:
I tried going through the provided types by next-auth but can't find anything to assign it to.
Beta Was this translation helpful? Give feedback.
All reactions