Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

[Vue warn]: Component is missing template or render function.  #42

@francissebin-2hats

Description

@francissebin-2hats

Thanks in advance.

I got a Vue component(suppose ComponentX.vue) and added the following code to it. It shows [Vue warn]: Component is missing template or render function. got any solution to this?

Using Vue 3 with Inertia

<template>
    <VueDiff :mode="mode" :theme="theme" :language="language" :prev="prev" :current="current"></VueDiff>
</template>
  
<script>
import VueDiff from 'vue-diff';
import 'vue-diff/dist/index.css';

export default {
    components: {
        VueDiff,
    },
    data() {
        return {
            mode: 'split',
            theme: 'dark',
            language: 'plaintext',
            prev: 'prev',
            current: 'current',
        }
    },
}
</script>

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