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

Cannot use with Vue2/nuxt #50

Closed
waymorphood opened this issue Aug 1, 2022 · 2 comments
Closed

Cannot use with Vue2/nuxt #50

waymorphood opened this issue Aug 1, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@waymorphood
Copy link

trying to sue @livechat/widget-vue in Vue2 and getting exceptions on loading my site. Not even rendering the component yet. I get thi
Monosnap morphood | morphood 2022-08-01 11-58-29
s
Steps.

  1. Add package with yarn
  2. put code in nuxt plugin:
    import Vue from 'vue';
    import { LiveChatWidget } from "@livechat/widget-vue";
    Vue.use(LiveChatWidget);
  3. Add plugin to nuxt.config.js
@waymorphood waymorphood added the bug Something isn't working label Aug 1, 2022
@walaszczykm
Copy link
Collaborator

Hello @waymorphood 👋

In order to use Chat Widget Adapter for Vue 2 you need to import a LiveChatWidget component from a dedicated submodule that exports a backward compatible Vue 2 version of that component. It will look like this:

import { LiveChatWidget } from "@livechat/widget-vue/v2"

Instead of this:

import { LiveChatWidget } from "@livechat/widget-vue"

Here you can find a dedicated section for usage with Vue 2 in the package readme:
https://github.com/livechat/chat-widget-adapters/tree/master/packages/widget-vue#vue-2

@waymorphood
Copy link
Author

waymorphood commented Aug 2, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants