【React】用umi添加模板时,dependencies conflict between block and your project?

在antd pro项目中用umi新建模板时,就会报执行任务错误。

Execute task error Error: find dependencies conflict between block and your project:* @ant-design/compatible: 0.0.1-rc.0(your project) not compatible

with ^0.0.1-rc.0(block)

  • 1 我之前的项目依赖项:

【React】用umi添加模板时,dependencies conflict between block and your project?

  • 2 执行以下命令。

npm install @ant-design/[email protected]^0.0.1-rc.0 --save

【React】用umi添加模板时,dependencies conflict between block and your project?

  • 3 重新用umi创建模板时,仍出现上述错误。

【React】用umi添加模板时,dependencies conflict between block and your project?

回答

以上是 【React】用umi添加模板时,dependencies conflict between block and your project? 的全部内容, 来源链接: utcz.com/a/74750.html

回到顶部