Skip to content

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

@stnswz

Description

@stnswz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions