I am encountering an issue while trying to import SessionProvider from Next-Auth. The error message that is being displayed is:
"Module not found: Package path ./react is not exported from package E:\NextApp\portfolio_website-main\portfolio_website-main\node_modules\next-auth"
Below is a snippet of my code (_app.js):
import { SessionProvider } from "next-auth/react"
export default function App({Component, pageProps: { session, ...pageProps }}) {
return (
<SessionProvider session={session}>
<Component {...pageProps}/>
</SessionProvider>
)
}