Closed eaoliver closed 1 month ago
The issue is resolved by adding "use client" to the unedited navigation-menu.tsx file.
Closing this issue as it's not really a bug. However, given the tight integration between v0 and NextJS, it might be worth checking if a nextjs project when installing the navigation-menu component.
Describe the bug
I'm consistently encountering the following error when building the navigation-menu component:
Collecting page data .TypeError: (0 , l.createContext) is not a function
Affected component/components
navigation-menu
How to reproduce
The bug can be produced using the following steps:
Then move and rename the v0 generated component to src/app/page.tsx and then:
pnpm build
Codesandbox/StackBlitz link
No response
Logs
System Info
Before submitting