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

Installing into quasar 1.x #297

Closed
joweste opened this issue Jul 15, 2023 · 1 comment
Closed

Installing into quasar 1.x #297

joweste opened this issue Jul 15, 2023 · 1 comment
Labels

Comments

@joweste
Copy link

joweste commented Jul 15, 2023

Hi, Does someone had success installing this component into quasar?

I trying to install into quasar, but I had an error:

[Vue warn]: Failed to mount component: template or render function not defined.
found in
---> <BeautifulChat>
       <App> at src/components/ChatComponent.vue
         <IndexContatos> at src/pages/contatos/Index.vue
           <QPage>
             <QPageContainer>
               <QLayout>
                 <MainLayout> at src/layouts/MainLayout.vue
                   <App> at src/App.vue
                     <Root>


Here is what I did. I created a boot file as:

// beautifulChat.js
import Chat from 'vue-beautiful-chat'
export default ({ Vue }) => {
Vue.component('beautiful-chat', Chat)
}
and I add it into quasar.conf boot session.

In my page I am using:

<script> import ChatComponent from 'src/components/ChatComponent.vue' export default { name: 'IndexContatos', components: { ChatComponent, }, } </script>

and the ChatComponent is:

<template>
  <div>
    <beautiful-chat
      :always-scroll-to-bottom="alwaysScrollToBottom"
      :close="closeChat"
      ....
    />
  </div>
</template>

<script>
export default {
  name: 'ChatComponent',
  components: {},
  data() {
    return {
      participants: [],
      titleImageUrl:
        'https://a.slack-edge.com/66f9/img/avatars-teams/ava_0001-34.png',
    }
    ....
  }
}
</script>
   
@stale
Copy link

stale bot commented Oct 15, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Oct 15, 2023
@stale stale bot closed this as completed Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant