Livewire.js 500 (Internal Server Error) [Solved]

The head of my app.blade.php ends like this:

@livewireAssets
</head>

To load Livewire, but when I load my component view, I see the following error in the Google Chrome console:

http://newapp.test/livewire/livewire.js?id=baf105a7de86deff8ac1
Status: 500

Am I calling Livewire the wrong way. Looks like it can’t find livewire.js. My app is in the root directory, as is standard in a Laravel installation. I did not install Laravel in a subdirectory.

When I look at the Laravel log file, I see this error description:

local.ERROR: Non-static method Livewire\LivewireJavaScriptAssets::unminified() should not be called statically {“exception”:"[object] (ErrorException(code: 0): Non-static method Livewire\LivewireJavaScriptAssets::unminified() should not be called statically at I:\laragon\www\REAssist\vendor\laravel\framework\src\Illuminate\Routing\Route.php:197)
[stacktrace]

I realized my Laravel version was really old. I started a new project and Livewire worked fine.

1 Like