-
Notifications
You must be signed in to change notification settings - Fork 30.7k
Labels
ReactRelated to React.Related to React.linear: nextConfirmed issue that is tracked by the Next.js team.Confirmed issue that is tracked by the Next.js team.locked
Description
Link to the code that reproduces this issue
https://github.com/rwalisa/nextjs-useid-hydration-bug-demo/
To Reproduce
- Start the application in development, or build and run the server
- Open the index page
- In case the error doesn't appear, refresh it
- Remove line 7 in
Component.jsx - Refresh the page to see that the error is gone
Current vs. Expected behavior
Hydration fails, because useId() returns _R_clrlb_ on the server and _R_4lrlb_ on the client.
Provide environment information
Operating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 25.0.0: Mon Aug 25 21:16:39 PDT 2025; root:xnu-12377.1.9~3/RELEASE_ARM64_T6031
Available memory (MB): 36864
Available CPU cores: 14
Binaries:
Node: 24.8.0
npm: 11.6.0
Yarn: N/A
pnpm: N/A
Relevant Packages:
next: 15.5.3 // Latest available version is detected (15.5.3).
eslint-config-next: 15.5.3
react: 19.1.0
react-dom: 19.1.0
typescript: 5.9.2
Next.js Config:
output: N/AWhich area(s) are affected? (Select all that apply)
React
Which stage(s) are affected? (Select all that apply)
next dev (local), next build (local), next start (local)
Additional context
The issue happens starting from Next.js v15.4.2-canary.20. v15.4.2-canary.19 works as expected. All patch versions in 15.5.x are affected.
It only happens when AG Grid Enterprise is imported in a client component (not necessarily the one that calls useId()) and referenced in the code by accessing any of its exports. Since the imported package doesn't import React, I think it's an issue with Next.js module resolution.
Importing AG Grid Community doesn't trigger the issue.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
ReactRelated to React.Related to React.linear: nextConfirmed issue that is tracked by the Next.js team.Confirmed issue that is tracked by the Next.js team.locked