I am experiencing difficulties integrating the @auth0/nextjs-auth0 package into my Next.js application. After installing the package using:
npm install @auth0/nextjs-auth0
and adding the necessary file in the /lib directory, I encounter the following error:
Cannot find module '@auth0/nextjs-auth0/client' or its corresponding type declarations.ts(2307)
I have attempted to update the import statement to:
import { UserProvider } from '@auth0/nextjs-auth0';
However, the issue persists. I have ensured that I am using the latest version of the @auth0/nextjs-auth0 package.
Could you please provide guidance on resolving this issue or suggest potential causes for the error?
Thank you for your assistance.