#@livewireScripts not working?

4 messages · Page 1 of 1 (latest)

west onyx
#

Hi, I am pretty new to livewire and got stuck with this problem/error. I followed the steps provided on the official website (https://laravel-livewire.com/docs/2.x/quickstart).

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    @vite('resources/css/app.css')
    @livewireStyles
</head>
<body>
    @livewire('seminar-show', ['id' => $id]) 
    @livewireScripts 
</body>
</html>
west onyx
#

Progress: Maybe I managed to fix it by editing config of livewire.php to this

 'asset_url' => url('/'),```
from this
```php
 'asset_url' => null,```
Since I am really new to this I am not sure if this is valid or not, any feedback would be highly appreciated.
west onyx
#

Another update with another problem (maybe it caused previous solution?)
EDIT: It looks like that url() in config was problem, so I am not sure how to fix that...

west onyx
#

Another update:

'asset_url' => 'http://localhost/seminar-archive/public',

after changing the path to this ^ everything wroks as it should, but now I have no idea how it should look like in final version when i build the application.