Next.js Discord

Discord Forum

Error with shadcn NavigationMenu

Unanswered
Barbary Lion posted this in #help-forum
Open in Discord
Avatar
Barbary LionOP
I just initialized my first shadcn project with nextjs 14.1.3, installed a nav component and got this error:
Error: (0 , react__WEBPACK_IMPORTED_MODULE_0__.createContext) is not a function
How can i fix it?

1 Reply

Avatar
Toyger
you need to use shadcn from client components
so put it in separate component with "use client" at top.