Git Product home page Git Product logo

Comments (7)

marianmirzacu avatar marianmirzacu commented on July 30, 2024 3

I had the same error and I have found the following fix:

  • you need to install livewire via composer (composer require livewire/livewire)
  • if you are using nginx as a webserver add the following lines to your config
location = /livewire/livewire.js {
    expires off;
    try_files $uri $uri/ /index.php?$query_string;
}

source: https://benjamincrozat.com/livewire-js-404-not-found

from pulse.

adriweb avatar adriweb commented on July 30, 2024

Hitting this issue as well.

It would seem that the js code loading part @livewireScripts returns a path from the root of the domain instead of taking into account the env's APP_URL... maybe?

In my case, the whole laravel part of the website is served under a subdirectory, so if I manually add this part, the .js gets found as expected.

from pulse.

adriweb avatar adriweb commented on July 30, 2024

Alright, this is mentioned in the docs: https://livewire.laravel.com/docs/installation#customizing-the-asset-url

That said, the default behaviour, once you composer require it, may lead people to think it's broken, which is unfortunate.

from pulse.

binumathew avatar binumathew commented on July 30, 2024

Pulse Version
v1.0.0-beta2

Laravel Version
10.34.2

PHP Version
8.2.10

In my case http://localhost:8000/pulse return 404

from pulse.

github-actions avatar github-actions commented on July 30, 2024

Thank you for reporting this issue!

As Laravel is an open source project, we rely on the community to help us diagnose and fix issues as it is not possible to research and fix every issue reported to us via GitHub.

If possible, please make a pull request fixing the issue you have described, along with corresponding tests. All pull requests are promptly reviewed by the Laravel team.

Thank you!

from pulse.

timacdonald avatar timacdonald commented on July 30, 2024

Seems this isn't an issue with Pulse specifically, but a configuration issue of the consuming application.

Will close this and would welcome suggestions if there are improvements we can make here.

from pulse.

timacdonald avatar timacdonald commented on July 30, 2024

Opened a PR to address this moving forward: #266

from pulse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.