[英]Configure antd after create-react-app eject
我的React應用是使用create-react-app創建的,並添加了以下內容的And Design: https : //ant.design/docs/react/use-with-create-react-app
我什至使用以下方法自定義了一些較少的var: https : //ant.design/docs/react/use-with-create-react-app#Customize-Theme
現在,我彈出了我的應用程序,但是一切都停止了。
編輯1:
第一個錯誤是彈出后,在package.json中配置的腳本不再起作用,如下所述: https : //github.com/ant-design/create-react-app-antd/issues/10
彈出create-react-app后配置antd的步驟是什么?
謝謝
您只需要運行npm i react-scripts
。
這將安裝您需要進行此工作的缺少依賴項。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.