Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PAge is not loading missing livewire.js #201

Closed
nezaboravi opened this issue Dec 9, 2023 · 7 comments
Closed

PAge is not loading missing livewire.js #201

nezaboravi opened this issue Dec 9, 2023 · 7 comments
Assignees

Comments

@nezaboravi
Copy link

Pulse Version

1

Laravel Version

10.35.0

PHP Version

8.2

Livewire Version

3

Database Driver & Version

mysql

Description

ON production site, with empty database entries, it does loading page.

IN dev console i see that livewire.js gives 404.
Now, this is weird, because the same code, works on dev server and on my local.

Now, maybe is worth to mention, i am running producion site via Forge as isolated site? Dont know if this can have any affects.

Steps To Reproduce

NOthinf special here to reproduce it. As in my bug description. Happy to provide access to repo if needed.

@haugstrup
Copy link

I had the same issue and it was an nginx configuration issue. Go to edit your site's nginx configuration file and find the # Cache expires headers section near the bottom.

Immediately before that section insert this snippet to tell nginx to let your Laravel app handle requests for livewire.js

    location = /livewire/livewire.js {
        expires off;
        try_files $uri $uri/ /index.php?$query_string;
    }

@nezaboravi
Copy link
Author

Thank you @haugstrup for reply and advise, but i am not confident to do that, as this is Laravel Forge provided server, same as my dev server, both forge provided, and works on dev, but not on live. Also works on local. The only difference is that Live server is created with isolation flag.

@jbrooksuk
Copy link
Member

Please provide us with the exact version of Pulse you're running. v1.0.0-beta5 is currently the latest version, so check you're on that too.

@nezaboravi
Copy link
Author

@jbrooksuk here
image

@jessarcher
Copy link
Member

@nezaboravi Could you please provide the output of:

php artisan route:list --path=livewire

Happy to provide access to repo if needed.

The repo would be helpful if you're able!

@timacdonald
Copy link
Member

This is a known "issue" with Livewire.

See their docs...

Screenshot 2023-12-11 at 11 13 42 am

which links to: https://benjamincrozat.com/livewire-js-404-not-found

We are considering bundling Livewire into Pulse so that users do not need to consider or deal with this. For now, follow the above blogpost guide on configuring NGINX.

@timacdonald
Copy link
Member

Opened a PR to address this moving forward: #266

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants