Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

cutigersfan's avatar

Livewire.js 404

I've created a site with livewire based on laravel jetstream. It works in my local dev environment. I've uploaded to a staging server conrolled by laravel forge. All works there too. HOWEVER, in the production environment (on same laravel forge server) livewire.js is getting a 404 error. The part I don't understand is why I can see the 404 error in chrome dev tools, copy the link, paste in a new browser window and NOT get a 404 error. The js actually shows. Why would it show direct access, but not when included as a script in a page?

Thanks in advance.

0 likes
5 replies
Sinnbeck's avatar

Any chance you can share an url with the problem so we can help debug?

hrsa's avatar

Also one of the solutions i found is simply to create a symlink from the project folder:

ln -s ../vendor/livewire/livewire/dist ./public/livewire
5 likes

Please or to participate in this conversation.