radix-vue / shadcn-vue

Vue port of shadcn-ui
https://www.shadcn-vue.com/
MIT License
3.51k stars 203 forks source link

[Bug]: CustomEvent is not defined #587

Closed EugeneTsydenov closed 4 weeks ago

EugeneTsydenov commented 4 weeks ago

Reproduction

https://codesandbox.io/p/github/EugeneTsydenov/nuxt-messager/messager?file=%2FREADME.md&workspaceId=896e1493-a13c-4929-93d0-929dedaa586d

Describe the bug

There is a problem in the components: ScrollArea and Checkbox when used together with nuxt. On pages where these components are used, the error 500 CustomEvent is not defined appears. I know that this is an ssr problem, but are there ways to solve this problem without using rendering on the client (I am not satisfied with this behavior)?

System Info

system

Contributes

sadeghbarati commented 4 weeks ago

@EugeneTsydenov CodeSandbox link said Unable to access this workspace

Can you create a Stackblitz instead? and tell us what is your radix-vue version

Closing for now will reopen after reproduction link

EugeneTsydenov commented 4 weeks ago

@sadeghbarati Radix-vue version 1.8.0. I apologize sandbox does not open probably because I have a private repository

sadeghbarati commented 4 weeks ago

@EugeneTsydenov Can you try with the latest radix-vue?

1.8.3

EugeneTsydenov commented 3 weeks ago

@sadeghbarati Everything worked, thank you very much