You forgot to wrap your app in <UserProvider> in Next.js 14
mrcwinn opened this issue · comments
mrcwinn commented
Checklist
- The issue can be reproduced in the nextjs-auth0 sample app (or N/A).
- I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer.
- I have looked into the API documentation and have not found a suitable solution or answer.
- I have searched the issues and have not found a suitable solution or answer.
- I have searched the Auth0 Community forums and have not found a suitable solution or answer.
- I agree to the terms within the Auth0 Code of Conduct.
Description
I'm seeing the error "You forgot to wrap your app in " in Next.js 14. My hunch is that it's related to server actions, which are no longer experimental.
Reproduction
npx create-next-app@latest
- Follow Auth0 QuickStart guide
npm run dev
- Observe error
Additional context
No response
nextjs-auth0 version
3.2.0
Next.js version
14.0.2
Node.js version
18.18.0
Adam Mcgrath commented
Hi @mrcwinn - thanks for raising this
It's unlikely to be Sever Actions since we don't include Server Actions in the QuickStart.
I can't reproduce your issue with the steps you've shared - could you share a repo that demonstrates the issue and I'd be happy to investigate
Adam Mcgrath commented
Closing, happy to reopen if you want to share a repo that demonstrates the issue