The most important point is that @ant-design/cssinjs must use version 1, for example:
"@ant-design/cssinjs": "^1.24.0"
For the rest, simply follow the configuration instructions in the official documentation