nasa8x/v-markdown-editor

Failed to mount component: template or render function not defined.

stnswz opened this issue · 0 comments

Using Vue with typescript:

<template>
  <div>
    <Editor :options="options" v-model="value" />
  </div>
</template>

<script lang="ts">
import { Component, Vue } from 'vue-property-decorator';
import 'v-markdown-editor/dist/v-markdown-editor.css'
import Editor from 'v-markdown-editor'

  @Component({
    components: {
      Editor
    }
  })
  export default class VMarkdownEditor extends Vue {
    private value = "Das nächste Wort ist **BOLD** geschrieben."
    private options = {                   
        lineNumbers: true,
        styleActiveLine: true,
        styleSelectedText: true,
        lineWrapping: true,
        indentWithTabs: true,
        tabSize: 2,
        indentUnit: 2
    }
  }
</script>

I am using this as component. The editor is not shown, instead im getting the error: Failed to mount component: template or render function not defined.