for the people that continues to have this errors and has the invoice ninja installed by softaculus the solution is this:
in /config/livewire.php at Livewire Assets URL change this:
‘asset_url’ => “http://yourdomain.com/subfolder”,
(or https)
in /config/livewire.php at Livewire App URL change this:
‘app_url’ => “http://yourdomain.com/subfolder”,
(or https)
then do this:
php artisan optimize
php artisan cache:clear
and its done