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

[Vue warn]: Component <Anonymous> is missing template or render function during SSR #68

@kurtobando

Description

@kurtobando

Hello,

Im getting this warning below, during SSR with Laravel + InertiaJS + Vue app.

[Vue warn]: Component <Anonymous> is missing template or render function

So far, this is my code below:

<template>
    <inner-image-zoom
        :alt="name"
        :hide-hint="true"
        :src="imageSource"
        :zoom-preload="true"
     />
</template>

<script lang="ts">
import { defineComponent } from 'vue';
import InnerImageZoom from 'vue-inner-image-zoom';

export default defineComponent({
    name: 'ImageZoom',
    components: {
        InnerImageZoom,
    },
    props: {
        imageSource: {
            required: true,
            type: String,
        },
        name: {
            required: true,
            type: String,
        },
    },
});
</script>

<style scoped></style>

Any recommendation what am i missing here?

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