/livewire/livewire.js returns a 404 not found error

  • Post author:
  • Post category:Blog
  • Post comments:0 Comments
You are currently viewing /livewire/livewire.js returns a 404 not found error
livewire.js returns a 404

Laravel Version ……………………………………………………………………………… 10.45.0
PHP Version ………………………………………………………………………………….. 8.2.23
Composer Version ………………………………………………………………………………. 2.7.3
Environment ……………………………………………………………………………………. prod
Debug Mode ……………………………………………………………………………………… OFF
Maintenance Mode ………………………………………………………………………………… OFF

Cache ………………………………………………………………………………………………
Config ………………………………………………………………………………………. CACHED
Events ………………………………………………………………………………………. CACHED
Routes ………………………………………………………………………………………. CACHED
Views ……………………………………………………………………………………….. CACHED

Drivers …………………………………………………………………………………………….
Broadcasting …………………………………………………………………………………. pusher
Cache …………………………………………………………………………………………. file
Database ……………………………………………………………………………………… mysql
Logs ………………………………………………………………………………….. stack / daily
Mail ………………………………………………………………………………………….. smtp
Queue ……………………………………………………………………………………… database
Session ……………………………………………………………………………………….. file

Livewire ……………………………………………………………………………………………
Livewire …………………………………………………………………………………….. v3.4.4

Wahh ngeselin nih kenapa yah?

1. Coba pake ini kalo pake nginx servernya

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

    2. Paksa Injct ke resources/js/app.js nya

      import { Livewire } from '../../vendor/livewire/livewire/dist/livewire.esm'
      
      Livewire.start()

      Oh iyaa satu tip kalo pas upload file via livewire Mixed Content: The page at http https
      coba ini yah edit file app/Http/Middleware/TrustProxies.php

      protected $proxies = '*';
      livewire.js returns a 404
      livewire.js returns a 404

      Leave a Reply

      This site uses Akismet to reduce spam. Learn how your comment data is processed.