Error with shadcn NavigationMenu
Unanswered
Barbary Lion posted this in #help-forum
Barbary LionOP
I just initialized my first shadcn project with nextjs 14.1.3, installed a nav component and got this error:
How can i fix it?
Error: (0 , react__WEBPACK_IMPORTED_MODULE_0__.createContext) is not a function
How can i fix it?
1 Reply
Toyger
you need to use shadcn from client components
so put it in separate component with "use client" at top.
so put it in separate component with "use client" at top.