Sitronik/vue3-beautiful-chat

Doesn't work when included in nested component

Opened this issue · 4 comments

When I include beautiful-chat in a nested component the beautiful-chat isn't displayed.

Example:

Main Vue

<template>
  <a />
</template>

A Source

<template>
  <beautiful-chat.... />
</template>

Thanks for opening up your first issue!

Hello, do you have errors in the browser console?

image

Same issue here. But it was my first try. See browser console attached.

I'm using the latest version of Vue 3 composition API and the code in PR #16 my structure looks like the following

<template>
  <div ...>
    <div ...>
      <beautiful-chat ...>
        <!-- beautiful chat templates here if needed -->
      </beautiful-chat>
    </div>
  </div>
</template>

However they are in the same file but I get no such warning maybe a more recent code has this sorted out