[bug]: React v5.36.1 causes NextJS module errors (client vs. server)
triage
### Description
When I upgraded the Cerberus UI Platform repo to use v5.36.1 from v5.36.0 - our docs site (uses Next@latest) crashes with the client/server module error via an `_expectAll()` failure.
You can pull from our repo, and use this PR as the reproduction which is where it was found:
[https://github.com/omnifed/cerberus/pull/2287](https://github.com/omnifed/cerberus/pull/2287)
I didn't see anything change, so if there is a better way for our React library to export, I'm happy to adapt to whatever will be more consistent to the future of Ark versions & React.
### Link to Reproduction (or Detailed Explanation)
https://github.com/omnifed/cerberus/pull/2287
### Steps to Reproduce
1. Clone the repo
2. Checkout the PR branch
3. Upgrade ark via `pnpm up -r @ark-ui/react@latest` to ensure all the workspaces update
4. Run `pnpm start:docs` from the root
5. 🔴 Open your browser and see the crash
### Ark UI Version
5.36.1
### Framework
- [x] React
- [ ] Solid
- [ ] Vue
- [ ] Svelte
### Browser
Google Chrome
### Additional Information
Anyone is welcome to submit PRs to Cerberus to improve our bundling/features if this is a problem on our side. Likewise, I'm happy to hear any feedback that we can adjust on our side as well.
We are gaining some traction due to our new signals lib, so I want to make sure we are setup for success for everyone.
关闭于 2026-04-21 1 条评论