diff --git a/packages/next/src/server/config.ts b/packages/next/src/server/config.ts index fddb06fb22bca..8c2b5ed9552ae 100644 --- a/packages/next/src/server/config.ts +++ b/packages/next/src/server/config.ts @@ -714,7 +714,7 @@ function assignDefaults( transform: 'react-bootstrap/{{member}}', }, antd: { - transform: 'antd/es/{{member}}', + transform: 'antd/es/{{kebabCase member}}', }, ahooks: { transform: 'ahooks/es/{{member}}',