I have been building a threads app clone with help of Js mastery yt channel. But i got this Error of Error : ClerkInstanceContext not found.
I tried restarting the app, replacing code. But nothing changed.
What to do?
Can someone please solve it for me?
2
Answers
make sure you embed the
<html></html>
tag inside a<ClerkProvider></ClerkProvider>
tag in your root’s layout.tsx fileYou have to wrap your (auth) layout.tsx with ClerkProvider and your (root) layout.tsx with ClerkProvider. Make sure you’ve signed in to see the changes.