Undefined Variable $component on Laravel Livewire

It has been twice my team encountered this bug of Undefined variable $component when developing web app using Laravel Livewire. Personally, I am a fan of Laravel Inertia (Jetstream or custom). Once in a while, they will be greeted with…