igorxut / vue-ckeditor5

Component CKEditor 5 for Vue 2.
MIT License
53 stars 22 forks source link

Implementation for Nuxt: template or render function not defined. #3

Closed MartinMuzatko closed 6 years ago

MartinMuzatko commented 6 years ago

When running vue-ckeditor5 with nuxt, I get the following error:

vue.runtime.esm.js:587 [Vue warn]: Failed to mount component: template or render function not defined.

found in

---> <VueCkeditor>

Setup:

<template>
    <div>
        <VueCkeditor type="classic" :editors="editor" v-model="text" />
    </div>
</template>

<script>
import ClassicEditor from '@ckeditor/ckeditor5-build-classic'
import VueCkeditor from 'vue-ckeditor5'

export default {
    components: {VueCkeditor},
    data: () => ({
        editor: {
            classic: ClassicEditor
        },
        text: 'testing'
    }),
}
</script>
MartinMuzatko commented 6 years ago

My bad! I was not referring to the component property within the exported VueCkeditor. Closing this issue.

Thanks for this module <3