按照antd官網步驟 https://ant.design/docs/react/use-with-create-react-app-cnhtml
最後yarn start會報錯react
緣由是react-scripts 升級到 2.1.2 之後破壞了 react-app-rewiredantd
解決方法,對react-scripts進行降級處理app
yarn add react-app-rewired@2.0.2-next.0
參考:.net
https://blog.csdn.net/weixin_39836173/article/details/86110011code
https://www.cnblogs.com/mmykdbc/p/10255814.htmlhtm