'Compilation error when running antd source code

header Version
antd 4.18.8
system macOS Big Sur 11.6
node v16..14.0
npm v8.3.1

After running npm install locally, npm start, the error is as follows

error message

And I haven't found any other solution on google



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source