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

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 and the basic login/logout works correctly in my app.

Can anyone help? Thanks

Problem solved… apparently the new import is import { useUser } from "@auth0/nextjs-auth0" as explained here.

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