Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

wikorl's avatar
Level 13

FullCalendar Livewire & Alpine.js implementation error

I have the following Livewire component as my backend

and the following frontend implementation

But whenever an event gets deleted in the backend, I receive the following errors in the console

Alpine Warning: Duplicate key on x-for <template x-for=​"event in getEvents()​" :key=​"event.commitId">​…​</template>​
Alpine Expression Error: Cannot read properties of undefined (reading 'after')

Expression: "getEvents()"

I can't figure out where the problem is located to fix it.

0 likes
2 replies
tmascroft's avatar

Did you ever find a fix for this? I'm having the same issue and I cannot for the life of me debug it.

tmascroft's avatar

By any chance are you using wire-elements/wire-spy, it turns out that was the issue for me. I couldn't find any mention of <template x-for=​"event in getEvents()​" :key=​"event.commitId">​…​</template> at all.

Please or to participate in this conversation.