简体   繁体   中英

Configure antd after create-react-app eject

My react app was created with create-react-app and I added And Design following: https://ant.design/docs/react/use-with-create-react-app

I even customized some less vars using: https://ant.design/docs/react/use-with-create-react-app#Customize-Theme

Now, I ejected my app but everything stopped working.

EDIT1:

The first error is that after ejecting, the scripts configured in package.json no longer works, as described here: https://github.com/ant-design/create-react-app-antd/issues/10

What are the steps to configure antd after ejecting create-react-app?

Thanks

You just need to run npm i react-scripts .

This will install the missing dependency you need to make this work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM