-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 [BUG]Cannot read property 'register' of undefined #10424
Comments
我也有这个错误哎 |
me too |
我也遇到这个问题 |
是因为 react-dev-inspector 发布的最新版本 1.8.3 有问题,回退一个版本即可 |
|
react-dev-inspector回退后问题解决了 |
I downgraded to "react-dev-inspector": "^1.7.0" but the same error still appears. |
也有这个问题 |
"react-dev-inspector": "1.8.1" |
感觉就跟没测试就扔到线上一样 |
排查了一上午,到issues看原来是这个问题 |
我是实在不想再浪费时间就用了umi4那个,那个没报错 |
浪费了一个上午😢 |
有一次更恐怖的,我用Link的时候不小心引用了dumi中的link,开发的是没问题,传到服务器白屏 |
Same issue with ^1.8.2, looks like 'react-dev-inspector' is not the only cause of error. Have been using react-dev-inspector: ^1.1.0 since the beginning. |
非常抱歉,发布了 @nikvv sorry, |
I just updated to version 1.8.4 and the build worked, thank you for saving my weekend! also, thank you for the quick fix! |
🐛 bug 描述
使用pro-cli创建的项目启动报错
📷 复现步骤 | Recurrence steps
pro create learn
选择umi@3
cd learn
tyarn
tyarn dev
🏞 期望结果 | Expected results
正常运行
💻 复现代码 | Recurrence code
直接报错
yarn run v1.22.5
$ npm run start:dev
Cannot read property 'register' of undefined
TypeError: Cannot read property 'register' of undefined
at service.pluginMethods. (E:\wandongli.com\admin.wandongli.com\node_modules@umijs\core\lib\Service\PluginAPI.js:181:12)
at inspectorPlugin (E:\wandongli.com\admin.wandongli.com\node_modules\react-dev-inspector\plugins\umi\react-inspector.js:48:95)
at E:\wandongli.com\admin.wandongli.com\node_modules@umijs\core\lib\Service\Service.js:364:29
at Generator.next ()
at asyncGeneratorStep (E:\wandongli.com\admin.wandongli.com\node_modules@umijs\core\lib\Service\Service.js:110:103) at _next (E:\wandongli.com\admin.wandongli.com\node_modules@umijs\core\lib\Service\Service.js:112:194)
at E:\wandongli.com\admin.wandongli.com\node_modules@umijs\core\lib\Service\Service.js:112:364
at new Promise ()
at E:\wandongli.com\admin.wandongli.com\node_modules@umijs\core\lib\Service\Service.js:112:97
at Service.applyAPI (E:\wandongli.com\admin.wandongli.com\node_modules@umijs\core\lib\Service\Service.js:371:7)
info 如果你需要进交流群,请访问 https://fb.umijs.org
Done in 5.77s.
© 版本信息
The text was updated successfully, but these errors were encountered: