Have you deleted the @livewireScripts and @livewireStyles from the base template ?
Livewire not detected after upgrading to V3
I recently migrated a project over from Livewire V2 to V3. The front end of the site seems fine; I can click on other pages and display the page. However, all of the buttons or any interactivity seems to be nulled. If I type in on a form, no validation or authorization works; and nothing gets inserted. In short, it has the same effect as having a blank button.
I recently took the Counter Example put on by Livewire's site, and when clicking add or decrease, nothing happens.
What's even more strange is that when I try to use LivewireDev tools, it's grayed out, and says Livewire is not detected. After upgrading from v2 to v3, has anyone ever had this problem?
I am putting my View and controller of the sample counter.
View:
<div>
<!-- After clicking either button, the counter stays at 1 -->
<h1>{{ $count }}</h1>
<button wire:click="increment">Add</button>
<button wire:click="decrement">Delete</button>
</div>
Livewire controller:
<?php
namespace App\Livewire;
use Livewire\Component;
class Counter extends Component
{
public $count = 1;
public function increment()
{
$this->count++;
}
public function decrement()
{
$this->count--;
}
public function render()
{
return view('livewire.counter');
}
}
Sorry for the late response. After closely following the documentation for Livewire 3, I was able to get everything working correctly.
Please or to participate in this conversation.