umijs / dumi

📖 Static Site Generator for component library development
https://d.umijs.org
MIT License
3.58k stars 1.18k forks source link

Unhandled Rejection (TypeError): Cannot read properties of undefined (reading '_updatedFibers') #1917

Open HugoJuntaoChen opened 1 year ago

HugoJuntaoChen commented 1 year ago

Question

打开页面就会报错 Unhandled Rejection (TypeError): Cannot read properties of undefined (reading '_updatedFibers') .dumi/tmp/umi.ts:69 66 | type: ApplyPluginsType.modify, 67 | initialValue: context, 68 | });

69 | return renderClient(modifiedContext); 70 | }, 71 | }))(); 72 | }

Sample Code

node: 14.19.1 dumi: 2.2.10 react: 16.12.0

HugoJuntaoChen commented 1 year ago

因隐私问题,无法上传图片 完整的报错堆栈: requestUpdateLane http://localhost:8000/mf-dep_node_modules_umijs_preset-umi_node_modules_react-dom_index_js.50298e4d.async.js:25310:23 updateContainer http://localhost:8000/mf-dep_node_modules_umijs_preset-umi_node_modules_react-dom_index_js.50298e4d.async.js:28767:14 push../node_modules/@umijs/preset-umi/node_modules/react-dom/cjs/react-dom.development.js.ReactDOMHydrationRoot.render.ReactDOMRoot.render http://localhost:8000/mf-dep_node_modules_umijs_preset-umi_node_modules_react-dom_index_js.50298e4d.async.js:29220:3 renderClient http://localhost:8000/mf-dep_node_modules_cache_mfsu_mf-va__node_modules__umijs_renderer-react_js.91025de0.async.js:1833:10

报错文件地址 /.dumi/tmp/umi.ts:69

66 | type: ApplyPluginsType.modify, 67 | initialValue: context, 68 | });

69 | return renderClient(modifiedContext); 70 | }, 71 | }))(); 72 | }

PeachScript commented 1 year ago

请提供最小可复现仓库

qiongshusheng commented 1 year ago

@HugoJuntaoChen defineConfig中是不是配置了ssr,如果配置了去掉试一下 我这边是报这个问题,去掉ssr配置就好了 image