1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

I got livewire/update 404 (Not Found) in JS console when wire:poll is triggered (and the...

Discussão em 'Outras Linguagens' iniciado por Jean François Manatane, Novembro 7, 2024 às 14:03.

  1. I got :

    livewire.js?id=38dc8241:4284 POST http://localhost:8000/livewire/update 404 (Not Found)


    Everytime the wire:poll is triggered.

    (and the render function is not called, except for the first time)

    I use Laravel Framework 11.25.0 with Livewire v3.5.6

    I remove almost all my code, but the errors is still there, even with this livewire view :

    <div wire:poll>A</div>


    With this livewire controller who basically do nothing ;

    class TweetTable extends Component
    {

    public function mount($campaign)
    {
    Log::info(__CLASS__ . ":" . __FUNCTION__ . " idCampaign = " . $campaign->id);
    }

    public function render()
    {
    Log::info(__CLASS__ . ":" . __FUNCTION__);

    return view('livewire.tweet-table');
    }
    }


    And I still have the error ...

    When I do : php artisan route:list | grep update

    I see :

    POST livewire/update ..................................... livewire.update › Livewire\Mechanisms › HandleRequests@handleUpdate


    I also add this in my web.php :

    Livewire::setUpdateRoute(function($handle) { return Route::post('/vendor/livewire/update', $handle); });

    Just before myu I have :

    I can access to /vendor/livewire/update in my browser

    Any ideas?

    Thanks

    Continue reading...

Compartilhe esta Página