Sorry for this stupid quastion i'm beginer, i found many answers about this problem, but still can't resolve my issue... Help me please...
I use Nuxt3, and just trying add component to a page, can't understand where my mistake..
The problem is that the page transition animation no longer works, but the component appeared
Component ServiceCard.vue:
<template>
<div class="w-[600px] h-[400px]">
<img
src="@/assets/img/online-store.png"
alt="oleksii vratskyi - online store project"
width="600"
height="400"
/>
<h5 class="font-bold text-xl text-stone-300 mt-5">Online store</h5>
</div>
</template>
<script setup>
const { product } = defineProps(["product"])
</script>
Page portfolio.vue:
<main>
<div class="grid grid-cols-2 place-items-center text-stone-300">
<div>
<ServiceCard :card="product" />
</div>
<div>
<ServiceCard :card="product" />
</div>
</div>
</main>
</template>
<script>
import { ServiceCard } from '@nuxt/schema';
</script>
I see some issues...
portfolio.vuecomponent doesn't have aproductvariable definedServiceCard.vueexpectsproductto be passed as prop, butportfolio.vuesends it acardprop insteadportfolio.vueshould have 2 words and be capitalized ie.PortfolioView.vueServiceCardfrom@nuxt/schema, this doesn't seem right. Are you sure that's where the component is defined?example
Component
ServiceCard.vue:Page
PortfolioView.vue: