Issue Integrating @auth0/nextjs-auth0 in Next.js Application

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.

Please check the latest docs here

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.