Skip to content
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

icons-vue: ShadowRoot is not defined in SSR mode #597

Open
greenhat616 opened this issue Sep 10, 2023 · 1 comment
Open

icons-vue: ShadowRoot is not defined in SSR mode #597

greenhat616 opened this issue Sep 10, 2023 · 1 comment

Comments

@greenhat616
Copy link

greenhat616 commented Sep 10, 2023

升级到 v7.0.0 后,在 Nuxt 3 中使用,出现如上错误。


关键代码应该是在 inShadow 中使用的 instanceOf ShadowRoot,只需要做成 ShadowRoot && xxx instanceOf ShadowRoot 即可。

cc @tangjinzhou

@greenhat616 greenhat616 changed the title ShadowRoot is not defined in SSR mode icons-vue: ShadowRoot is not defined in SSR mode Sep 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants