Open edugrip opened 5 years ago
Ask @johmun/vue-tags-input
to support SSR. 😄
Is it possible to solve this with this package? If not then what are the use-cases for this package( vue-client-only).
@edugrip when ssr picks up the lib, even if you don't render due to client-only, the lib still has to make sense ssr-wise, hence @egoist's answer. What you can do is to either ask for SSR support or define an alias on your bundler that compiles your server-side component to nothing (kind of like Nuxt does with plugins and mode: server)
@thiagobrandam , if the lib makes sense ssr-wise, why would it not render on ssr?
Or is this library for those components who can be rendered on server but you do not want them to be rendered there ?
Check the PR above for the fix :)
Had this issue today because the client-only
component loads an async component that should run in the browser only. Using scoped slots would fix the problem.
https://forum.vuejs.org/t/defer-evaluation-of-conditionally-rendered-slots/32869/4
Hello, same probleme with Alex-D/Cookies-EU-banner . So if I understand, there no solutions ?
There is, but I have to fix my PR, because there's error in it.
despite using client only code the above error is generated. For example using this
@johmun/vue-tags-input
repository.the reason is that when we import this in the component, this creates an error.
Template:
.... ... so how can we import the js with
window
anddocuemnt
variables without generating an error?