-
-
Notifications
You must be signed in to change notification settings - Fork 229
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
[Bug]: CustomEvent
is not defined on SSR
#930
Comments
Same problem :/ |
Seems to be happening using PNPM and Node18, no issue using Yarn and Node20 |
Yup might be Node18 doesn't support |
I am using the library with Nuxt, I have solved it by loading the route in SPA mode, in that case I don't need it to be SSR. |
Can confirm same setup Nodev18 throws a fatal, Nodev20 works flawlessly! |
So what now? What about the apps running on node18? |
I'm curious why not Vue emits? why we recreate the emits again? Perhaps using |
Could someone prepare a minimal reproduction which fails on Node 18? |
https://stackblitz.com/edit/github-uewhkz node v18 and pnpm working right ✅ |
@sadeghbarati I think using Custom Event here make sense, as we can target the specifc node with the event, and user can listen to that event by using Yeah we should add |
The problem might be localized to certain components; I forked your repo and used a Toast instead and was able to reproduce the error |
In console:
and
Originally posted by @luigigorlero in #901 (comment)
The text was updated successfully, but these errors were encountered: