radix-ui / primitives

Radix Primitives is an open-source UI component library for building high-quality, accessible design systems and web apps. Maintained by @workos.
https://radix-ui.com/primitives
MIT License
15.93k stars 833 forks source link

cannot find package @radix-ui/react-use-controllable-state when using a component like react-dropdown-menu #3173

Open thomas1Gaillot opened 1 month ago

thomas1Gaillot commented 1 month ago

Bug report

Current Behavior

I am able to display the component on my next app, when I do a hot reload. When I refresh the page, this error occur and keep being displayed. pnpm build also show this error.

image

Expected behavior

I have no errors before page generation, and another nextJS project running with similar configurations, working fine.

Suggested solution

Additional context

I am using a NextJS project, based on pages directory, maybe that is somehow causing the error. This is the only difference I see between my two working projects.

Your environment

Software Name(s) Version
Radix Package(s) @radix-ui/react-dropdown-menu 2.1.1
React n/a ^18
Browser firefox
Assistive tech
Node n/a
npm/yarn (i'm using pnpm)
Operating System Windows 11