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

**URL:** <https://community.auth0.com/t/issue-integrating-auth0-nextjs-auth0-in-next-js-application/183546>\
**Category:** Get Help\
**Tags:** sdks-quickstarts, auth0-react\
**Created:** [March 8, 2025, 1:33am UTC](https://community.auth0.com/t/issue-integrating-auth0-nextjs-auth0-in-next-js-application/183546 "2025-03-08T01:33:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rado](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rado/32/71278_2.png) [@rado](https://community.auth0.com/u/rado)\
**Post date:** [March 8, 2025, 1:33am UTC](https://community.auth0.com/t/issue-integrating-auth0-nextjs-auth0-in-next-js-application/183546/1 "2025-03-08T01:33:00Z")

</div>

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:

```auto
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.

---

<div class="post-metadata">

**Author:** ![pj2025](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/pj2025/32/71348_2.png) [@pj2025](https://community.auth0.com/u/pj2025)\
**Post date:** [March 9, 2025, 4:08am UTC](https://community.auth0.com/t/issue-integrating-auth0-nextjs-auth0-in-next-js-application/183546/2 "2025-03-09T04:08:34Z")

</div>

Please check the latest docs here

> **[GitHub - auth0/nextjs-auth0: Next.js SDK for signing in with Auth0](https://github.com/auth0/nextjs-auth0)**
>
> Next.js SDK for signing in with Auth0

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 23, 2025, 4:09am UTC](https://community.auth0.com/t/issue-integrating-auth0-nextjs-auth0-in-next-js-application/183546/3 "2025-03-23T04:09:08Z")

</div>

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