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
The tutorial says to add this line in lib/actions.ts : import { signIn } from '@/auth';
but i have this error message : Cannot find module '@/auth' or its corresponding type declarations.ts(2307)
The path seems strange so i change by : import signIn from 'next-auth';
and try to login with this credentials (as in the tutorial) : Email: user@nextmail.com
Password: 123456
But in lib/actions.ts i have bug with this line : await signIn('credentials', formData);
error message : Error: Cannot create property 'basePath' on string 'credentials'
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
-
The tutorial says to add this line in lib/actions.ts :
import { signIn } from '@/auth';
but i have this error message :
Cannot find module '@/auth' or its corresponding type declarations.ts(2307)
The path seems strange so i change by :
import signIn from 'next-auth';
and try to login with this credentials (as in the tutorial) :
Email: user@nextmail.com
Password: 123456
But in lib/actions.ts i have bug with this line :
await signIn('credentials', formData);
error message :
Error: Cannot create property 'basePath' on string 'credentials'
Beta Was this translation helpful? Give feedback.
All reactions