As I'm working on a Quasar project I've been facing an issue while trying to use the library.
Quasar's particularity is to offer some SSR render, so I had to make a small tweak to load the component with defineAsyncComponent (as a basic import would break the server side).
Here's the simple component I've made up for basic testing:
This is resulting in the component being "semi-rendered" as I see in HTML <picker-root type="" text=""></picker-root>, and I also have those two warnings in console :
[Vue warn]: provide() can only be used inside setup().
[Vue warn]: resolveComponent can only be used in render() or setup().
Would you have any idea about why it occurs, or how to load the component asynchronously?
I've also tried to setup a server-only boot file for Quasar like the following (but it didn't help either, giving the same result/warning):
@Nincha did you solve your problem? i am current having a problem in nuxt, where the whole app breaks in production with this lib. I have tried using \<ClientOnly>, kind of your \<q-no-ssr>, but no success
Hello there :)
As I'm working on a Quasar project I've been facing an issue while trying to use the library.
Quasar's particularity is to offer some SSR render, so I had to make a small tweak to load the component with
defineAsyncComponent
(as a basic import would break the server side).Here's the simple component I've made up for basic testing:
This is resulting in the component being "semi-rendered" as I see in HTML
<picker-root type="" text=""></picker-root>
, and I also have those two warnings in console :[Vue warn]: provide() can only be used inside setup(). [Vue warn]: resolveComponent can only be used in render() or setup().
Would you have any idea about why it occurs, or how to load the component asynchronously?
I've also tried to setup a server-only boot file for Quasar like the following (but it didn't help either, giving the same result/warning):
Thanks in advance for any piece of help and have a great day!