InertiaJS - Data was accessed during render but is not defined on instance
Hi, can anyone help me with this error message? What I'm trying to do is getting data from the database and display it on my homepage but my component won't render because I get this error:
[Vue warn]: Property "posts" was accessed during render but is not defined on instance. (21)
"
"
" at <Layout>"
"
"
" at <Homepage"
"errors="
{}
"posts="
[Object] (1)
"key=null"
">"
"
"
" at <Inertia"
"initialPage="
{component: "Homepage", props: Object, url: "/", version: "5e5397f9f5e7a5ff4574adb97044915e"}
"initialComponent="
{name: "Homepage", components: Object, render: function, __file: "resources/js/Pages/Homepage.vue", __v_skip: true, …}
"resolveComponent=fn<m>"
" ..."
">"
"
"
" at <App>"
I'm not sure what code you need to be able to solve it.