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.
3 Replies
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
pageThank you so much, it was a stupid mistake on my part
Don't be hard on yourself, easy mistake to make 🙂