Ant-design-pro: 🐛[BUG] api.addDepInfo is not a function, at _default (xxx_project/node_modules/@umijs/plugin-antd/lib/index.js:84:7)

Created on 27 Aug 2020  ·  5Comments  ·  Source: ant-design/ant-design-pro

🐛 bug 描述

今早起来运行项目,yarn run dev, 突然报错
image
没有安装任何新依赖, 和任何代码改动
删除node_modules后,重新cnpm i ,也尝试了 yarn install, 但是安装依赖到最后也会报同样的错误
api.addDepInfo is not a function
TypeError: api.addDepInfo is not a function

📷 复现步骤

第二天突然项目启动不了,
api.addDepInfo is not a function
TypeError: api.addDepInfo is not a function

image

🏞 期望结果

项目启动成功

💻 复现代码

yarn run dev

© 版本信息

🚑 其他信息

如截图等其他信息可以贴在这里
这是所有依赖
image

🛑 bug

Most helpful comment

Change "umi" version to "umi": "^3.2.17" in package.json solve this issue.

All 5 comments

同样遇到了重装了依赖可以了,但是报错

image

Change "umi" version to "umi": "^3.2.17" in package.json solve this issue.

antd bug 太多了, 这个问题非常诡异 , 遇到同样的问题 + 1

这个问题 100% 是umi 有一个不兼容的更新导致的

已经修复,回滚了

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gaoqiang19514 picture gaoqiang19514  ·  3Comments

lvzheng0404 picture lvzheng0404  ·  3Comments

952425340 picture 952425340  ·  3Comments

Yoping picture Yoping  ·  3Comments

zhongjiewu picture zhongjiewu  ·  3Comments