K
Kinde•3mo ago
Deragon

WEBPACK_IMPORTED_MODULE_0__.createContext is not a function

Hey guys, Im making a simple login register page using kinde and nextjs Im getting this error i dont know how to fix it, any help is appreciated. I ran the command npm i @kinde-oss/kinde-auth-nextjs Heres my github repo https://github.com/Raunak0713/FusionFlow Thank you Attaching a Image of my error
GitHub
GitHub - Raunak0713/FusionFlow
Contribute to Raunak0713/FusionFlow development by creating an account on GitHub.
No description
3 Replies
Daniel_Kinde
Daniel_Kinde•3mo ago
Thanks for supplying a reproduction repo! super helpful. Let me get this checked out for you @Deragon Kinde makes use of the useContext, in order to use this you need to add 'use client' to the top of your Header.tsx page
Deragon
Deragon•3mo ago
Thank you so much, it was a stupid mistake on my part
Daniel_Kinde
Daniel_Kinde•3mo ago
Don't be hard on yourself, easy mistake to make 🙂