Help with Clerk
Unanswered
GabrielRoecc posted this in #help-forum
I'm having this error when i try to use Clerk, I don't know what else I can do.
Internal error: Error: useSession can only be used within the <ClerkProvider /> component. Learn more: https://clerk.com/docs/components/clerk-provider
Internal error: Error: useSession can only be used within the <ClerkProvider /> component. Learn more: https://clerk.com/docs/components/clerk-provider
4 Replies
Jersey Wooly
is that screenshot your root layout component? The error indicates that there's a component that's not part of that
children@GabrielRoecc I'm having this error when i try to use Clerk, I don't know what else I can do.
Internal error: Error: useSession can only be used within the <ClerkProvider /> component. Learn more: https://clerk.com/docs/components/clerk-provider
wrap the children or the main component instead of entire layout
Brown bear
Make sure that the <ClerkProvider /> component is at the top level of your application