-
-
Notifications
You must be signed in to change notification settings - Fork 277
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
Nuxt - navigator is not defined #195
Comments
Hi @admiral20. I have experimented with Deep Chat in Nuxt quite a while back, but haven't had a chance to add it to the framework examples as I would inherently need to also update the example servers directory. The trick is to render the component on the client side and not in the server itself. The reason for this is because Deep Chat uses a variety of global variables/APIs that are not available during server render time such as In Nuxt, the way you can do this is by checking the
You can also find a live example for this here, however the link may change in the future when an official example will be added to the repo/documentation. Let me know if this helps. Thanks! |
Quick update, I have been quite busy with my work obligations and and have not had much time to create a full code sample for Nuxt, so instead I will simply add the live code example to our documentation and close this issue as soon as possible. Stay tuned for further updates! |
Hi @OvidijusParsiunas, would it be possible to create a nitro (the default server layer for Nuxt) server template? I would love to use deepchat in my current Nuxt application, but am puzzled and confused in how I can make it work properly. |
@IllamosSalaman I'll try to get some free time to experiment with it and see if I can get it to work. |
@OvidijusParsiunas Have you gotten the chance to look into a Nuxt server template. It would greatly help me out. |
Hi, I have very little free time recently as I am preparing to release the next big version of Deep Chat. I'll have a look at the nitro template as soon as I get a chance, however the Nuxt server code template in the repo will have to wait for the release first. Apologies for the inconvenience. |
in nuxt3, i not use vue3 defineAsyncComponent API , the deep-chat error info:
navigator is not defined
;after i use defineAsyncComponent API, the dom is not render;
The text was updated successfully, but these errors were encountered: