Replies: 5 comments 12 replies
-
|
The link seems to have moved to: You need to install a compatibility package, because of changes made in React 19.
|
Beta Was this translation helpful? Give feedback.
-
|
I downgraded react and react-dom to ^18, removed .next and node_modules, run npm install, start the project, and the warning still appears. |
Beta Was this translation helpful? Give feedback.
-
|
I resolved the React 19 + Ant Design v5 compatibility warning with the following setup in my Next.js 15.5 project: 1. Installed Compatibility Packagesnpm install @ant-design/v5-patch-for-react-19 --save
npm install @ant-design/nextjs-registry --save2. app/layout.tsx Configuration
3. package.json Scripts
4. Cleared the Build Cache
5. After Restarting, No Compatibility Warning
|
Beta Was this translation helpful? Give feedback.
-
|
Actually the issue was causing due to turbopack actually , Follow these three steps only.
|
Beta Was this translation helpful? Give feedback.
-
|
I fixed the React 19 + Ant Design v5 compatibility warning by putting the Ant Design setup inside a "use client" component. Here’s the simplified version that worked for me: "use client";
import '@ant-design/v5-patch-for-react-19';
import { ConfigProvider } from "antd";
import { StyleProvider } from "@ant-design/cssinjs";
import { AntdRegistry } from "@ant-design/nextjs-registry";
export function AppProviders({ children }) {
return (
<AntdRegistry>
<StyleProvider layer>
<ConfigProvider>
{children}
</ConfigProvider>
</StyleProvider>
</AntdRegistry>
);
} |
Beta Was this translation helpful? Give feedback.






Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions