tungquach / vue-emoji-mart-picker

Vue Emoji Mart Picker is a simple WYSIWYG editor component with emoji picker 😜
https://tungquach.github.io/vue-emoji-mart-picker/
BSD 3-Clause "New" or "Revised" License
2 stars 2 forks source link

Unknown custom element: <picker-area> - did you register the component correctly? For recursive components #1

Closed Roqii closed 6 years ago

Roqii commented 6 years ago

image

I'm developing the project with Nuxt But this happens with reference to 'vue-emoji-mart- picker'

tungquach commented 6 years ago

Hi @Roqii , did you register it on components:

<template>
  <div>
    <picker-area />
  </div>
</template>

<script>
  import PickerArea from 'vue-emoji-mart-picker'

  export default {
    components: {
      PickerArea,
    },
  }
</script>
Roqii commented 6 years ago

image

image

After registration,but the page CPU was 100% occupied, and the error "document is not defined" appeared

tungquach commented 6 years ago

@Roqii If you're using Nuxt, you might config it on client side plugin (https://nuxtjs.org/guide/plugins/#client-side-only) or use no-ssr component (https://nuxtjs.org/api/components-no-ssr#the-lt-no-ssr-gt-component)

Roqii commented 6 years ago

`

` That's right. My problem was solved. Thank you