简体   繁体   English

在create-react-app弹出后配置antd

[英]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 我的React应用是使用create-react-app创建的,并添加了以下内容的And Design: 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 我什至使用以下方法自定义了一些较少的var: https//ant.design/docs/react/use-with-create-react-app#Customize-Theme

Now, I ejected my app but everything stopped working. 现在,我弹出了我的应用程序,但是一切都停止了。

EDIT1: 编辑1:

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 第一个错误是弹出后,在package.json中配置的脚本不再起作用,如下所述: https : //github.com/ant-design/create-react-app-antd/issues/10

What are the steps to configure antd after ejecting create-react-app? 弹出create-react-app后配置antd的步骤是什么?

Thanks 谢谢

You just need to run npm i react-scripts . 您只需要运行npm i react-scripts

This will install the missing dependency you need to make this work. 这将安装您需要进行此工作的缺少依赖项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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