umijs / plugins

🍣 The one-stop shop for official Umi plugins and presets.
348 stars 238 forks source link

嵌入微应用后会报错 Failed to execute 'observe' on 'MutationObserver': parameter 1 is not of type 'Node' #923

Open EdenStrive opened 1 year ago

EdenStrive commented 1 year ago

[Failed to execute 'observe' on 'MutationObserver': parameter 1 is not of type 'Node']

原因是微应用通过MutationObserver监测window.document, 此时的document在微前端模式下被代理了不再是一个node节点。

我看qiankun更新到2.10.1可以解决,插件对应的乾坤版本是2.2.1, 插件的乾坤什么时候能解决这个问题

EdenStrive commented 1 year ago

"@umijs/plugin-qiankun": "^2.42.0",