Skip to content
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

How to make it work with Nuxt 3 ClientOnly mode? #528

Open
StanislavKozak opened this issue May 10, 2024 · 0 comments
Open

How to make it work with Nuxt 3 ClientOnly mode? #528

StanislavKozak opened this issue May 10, 2024 · 0 comments

Comments

@StanislavKozak
Copy link

How to use this plugin correctly?
Everything was perfect with Vue 3, but after switching to Nuxt 3 I can't get the chat to work.

I get the warning "Avoid app logic that relies on enumerating keys on a component instance...", the page freezes, and the CPU heats up to 90+ degrees.

I tried to import directly on the page and create a plugin in /plugins - to no avail.

/plugin/vue-advanced-chat.js content:
import VueAdvancedChat from 'vue-advanced-chat';
or
import * as VueAdvancedChat from 'vue-advanced-chat';

export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.component("ChatModule", VueAdvancedChat);
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant