HTTP 404 Livewire.js
Hi guys,
I am facing a - atleast it seems like - common problem with HTTP 404
/livewire/livewire.js
. But somehow I can't fix it.10 Replies
Your webserver isn't set up to deliver js files
I see you already found the relevant LW post.
Just to be sure: You restarted nginx after making the change?
Yes, I re-deployed the application.
Maybe for some context: I'm using a Docker Compose setup with Traefik as a Reverse Proxy.
The container is running behind that proxy - I don't know if that's relevant in anyway.
I am using a similar setup (Traefik / Docker Compose) at my local environment, it's working perfectly fine over here.
Weird one.
Yes. π
Yeah, sorry. I guess it's impossible to debug this one via Discord π
Don't worry, I'll continue debugging.
I'll let you know
The URL is available when I call it via browser. π€ We're getting somewhere.
Oh, somebody else had something similar. I guess it was the caching stuff
seems to be true. π
Safari is working, Chrome is returning 404.
Thank you!
I had the issue and been debugging for the last couple of hours. /livewire/livewire.js is handled by laravel router but it is being treated as static files by nginx/traefic.
Either define a location block in nginx config to specially handle that route, or, change the livewire route (e.g. make it /livewire/livewire-js).