-
-
Notifications
You must be signed in to change notification settings - Fork 626
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
当时用radioGroup组件时,报"window is not defined" #1045
Comments
好的,我们验证一下。
…---原始邮件---
发件人: ***@***.***>
发送时间: 2023年5月19日(周五) 上午10:03
收件人: ***@***.***>;
抄送: ***@***.***>;
主题: [varletjs/varlet] 当时用radioGroup组件时,报"window is not defined" (Issue #1045)
Bug report 🐞
当时用radioGroup组件时,报"window is not defined",好像不支持SSR,用ClientOnly组件包装,可以正常使用。
Version & Environment
***@***.***/ui": "^2.11.0"
Expectation
500 window is not defined at Proxy.toSizeUnit ***@***.***/ui/es/utils/elements.mjs:235:10) at Proxy.__render__ ***@***.***/ui/es/icon/Icon.mjs:30:22) at renderComponentRoot ***@***.***/runtime-core/dist/runtime-core.cjs.js:812:16) at renderComponentSubTree ***@***.***/server-renderer/dist/server-renderer.cjs.js:700:28) at renderComponentVNode ***@***.***/server-renderer/dist/server-renderer.cjs.js:631:12) at renderVNode ***@***.***/server-renderer/dist/server-renderer.cjs.js:743:14) at renderVNodeChildren ***@***.***/server-renderer/dist/server-renderer.cjs.js:759:5) at renderVNode ***@***.***/server-renderer/dist/server-renderer.cjs.js:731:7) at renderVNodeChildren ***@***.***/server-renderer/dist/server-renderer.cjs.js:759:5)
Actual results (or Errors)
demo地址:https://stackblitz.com/edit/github-yd1x3p?file=package.json,nuxt.config.ts,app.vue
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
var-swipe 组件有相同问题,不支持ssr |
尝试升级最新版本 var-swipe 在之前的版本进行过修复。 |
@AnyFork @varlet/[email protected] 尝试升级一下,看看问题有没有得到解决。 |
已解决 |
chouchouji
pushed a commit
to chouchouji/varlet
that referenced
this issue
May 19, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report 🐞
当时用radioGroup组件时,报"window is not defined",好像不支持SSR,用ClientOnly组件包装,可以正常使用。
Version & Environment
"@varlet/ui": "^2.11.0"
Expectation
Actual results (or Errors)
demo地址:https://stackblitz.com/edit/github-yd1x3p?file=package.json,nuxt.config.ts,app.vue
The text was updated successfully, but these errors were encountered: