Im using laravel 9, and i was struggling to find the error because i had no
ideia why was not working. So, the solution is:
main.blade.php
@livewireStyles
</head>
@livewireScripts
</body>
Then I ran the command : php artisan livewire:publish --config
and the command: php artisan livewire:publish --assets
"scripts": {
"post-autoload-dump": [
"IlluminateFoundationComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi",
// optional - "@php artisan vendor:publish --force --tag=livewire:assets --ansi"
],