shez1983's avatar

adding wire elements modal - getting livewire/update not found?

so I am trying to add this package, not sure if its relevant https://github.com/wire-elements/modal

on my layouts page I add following as suggested.

@livewire('wire-elements-modal')

i then create a modal open link

<a wire:click.prevent="$dispatch('openModal', { component: 'update-modal', arguments: { post: '{{ $post->slug }}' }})"
            class="drop-li cursor-pointer"
        >

when i click on this link i get

javascript?v=1753192890:2038 POST http://url.test/livewire/update 404 (Not Found)

thing is when i navigate to the page - i can see livewire IS working as that page is a component - and component actions are working

0 likes
3 replies
shez1983's avatar

it was a red herring - actual error was that i was trying to load a model whch was erroring (404) because not found.. so i was getting this error..

Please or to participate in this conversation.