icons-vue: ShadowRoot is not defined in SSR mode
greenhat616 opened this issue · comments
Jonson Petard commented
升级到 v7.0.0 后,在 Nuxt 3 中使用,出现如上错误。
关键代码应该是在 inShadow
中使用的 instanceOf ShadowRoot
,只需要做成 ShadowRoot && xxx instanceOf ShadowRoot
即可。
cc @tangjinzhou