# Module not found: Package path ./client is not exported from package

**URL:** <https://community.auth0.com/t/module-not-found-package-path-client-is-not-exported-from-package/185713>\
**Category:** Get Help\
**Tags:** configuration, application\
**Created:** [April 20, 2025, 1:37pm UTC](https://community.auth0.com/t/module-not-found-package-path-client-is-not-exported-from-package/185713 "2025-04-20T13:37:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![massimoalbarello](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/massimoalbarello/32/71118_2.png) [@massimoalbarello](https://community.auth0.com/u/massimoalbarello)\
**Post date:** [April 20, 2025, 1:37pm UTC](https://community.auth0.com/t/module-not-found-package-path-client-is-not-exported-from-package/185713/1 "2025-04-20T13:37:16Z")

</div>

Hello,

sorry for the basic question but I can’t figure out why i get `Module not found: Package path ./client is not exported from package` when I try adding `import { useUser } from "@auth0/nextjs-auth0/client";` in one of my components.

I’m using: `"next": "^15.3.1"` and `"@auth0/nextjs-auth0": "^4.4.2"`.

I followed all the steps in the [readme](https://github.com/auth0/nextjs-auth0#readme) and the basic login/logout works correctly in my app.

Can anyone help? Thanks

---

<div class="post-metadata">

**Author:** ![massimoalbarello](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/massimoalbarello/32/71118_2.png) [@massimoalbarello](https://community.auth0.com/u/massimoalbarello)\
**Post date:** [April 20, 2025, 1:40pm UTC](https://community.auth0.com/t/module-not-found-package-path-client-is-not-exported-from-package/185713/2 "2025-04-20T13:40:50Z")

</div>

Problem solved… apparently the new import is `import { useUser } from "@auth0/nextjs-auth0"` as explained [here](https://github.com/auth0/nextjs-auth0/blob/main/EXAMPLES.md#accessing-the-authenticated-user).

---

<div class="post-metadata">

**Author:** ![nik.baleca](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nik.baleca/32/68749_2.png) [@nik.baleca](https://community.auth0.com/u/nik.baleca)\
**Post date:** [April 21, 2025, 2:46pm UTC](https://community.auth0.com/t/module-not-found-package-path-client-is-not-exported-from-package/185713/3 "2025-04-21T14:46:56Z")

</div>

Hi @massimoalbarello

Thanks for sharing the solution with the rest of us!

If you have any other questions, you can always post again on the community!

Kind Regards,  
Nik

---

<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:** [June 12, 2025, 4:08pm UTC](https://community.auth0.com/t/module-not-found-package-path-client-is-not-exported-from-package/185713/4 "2025-06-12T16:08:56Z")

</div>

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