刚才更新3.3.0 启动项目出现以下错误。
TypeError: Cannot read property 'forEach' of undefined
injectIntoGlobalHook
./node_modules/react-refresh/cjs/react-refresh-runtime.development.js:461
458 | // https://github.com/facebook/react/issues/17626
459 |
460 |
> 461 | hook.renderers.forEach(function (injected, id) {
| ^ 462 | if (typeof injected.scheduleRefresh === 'function' && typeof injected.setRefreshHandler === 'function') {
463 | // This version supports React Refresh.
464 | helpersByRendererID.set(id, injected);
可否提供一个复现 demo
可否提供一个复现 demo
正常启动

另,组件名要小写
- function home() {
+ function Home() {
-umi3.3.0使用:快速刷新(Fast Refresh)启动报错 (#5786)
+umi3.3.0使用:快速刷新(Fast Refresh)启动后进入页面报错 (#5786)
是我问题描述错误。
你好、我使用win系统编译运行 打开页面没有问题。
我在mac环境下、进入页面后报错
你说的另:是说组件名称要大写?
趾蝣一粷~怼卜戚~我~愛YOU
------------------ 原始邮件 ------------------
发件人: "umijs/umi" <[email protected]>;
发送时间: 2020年12月7日(星期一) 下午4:29
收件人: "umijs/umi"<[email protected]>;
抄送: "尐爺ぶ超々"<[email protected]>;"Author"<[email protected]>;
主题: Re: [umijs/umi] [Bug] umi3.3.0使用:快速刷新(Fast Refresh)启动报错 (#5786)
正常启动
另,组件名要小写
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
解决了吗
已解决、React Developer Tools的问题 关闭后可以运行。
Most helpful comment
已解决、React Developer Tools的问题 关闭后可以运行。