Issues after newest update:
Livewire version 3.2.1
PHP version PHP 8.2
Steps To Reproduce After upgrading to newest version, I get this issue:
[Error] TypeError: undefined is not an object (evaluating 'window.livewireScriptConfig["uri"]') (anonymous function) (livewire.js:491:113) Global Code (livewire.js:7589)
Just made Composer update. Here is the screenshot containing composer.lock file:
Got the same error. The issue was resolved by manually updating the livewire.js file(+ livewire.min.js and manifest.json), which is further defined in the AppServiceProvider's boot method. The files can be found at vendor/livewire/livewire/dist directory.
public function boot(): void
{
Livewire::setScriptRoute(function ($handle) {
return Route::get('/vendor/livewire/livewire.js', $handle);
});
};
PS: I moved my files there because they are not updated like in version 2. GitHub PR