livewire: 2.5.0 APP_DEBUG false stops Livewire

Description

After updating from Livewire 2.4.4 to 2.5.0, Livewire stops working when APP_DEBUG in the .env file is set to false. We tried it with a fresh installation of Laravel 8 (v8.46.0).

If APP_DEBUG is set to true, everything comes back to normal. If we downgrade to Livewire 2.4.4, everything works fine.

Please note: We noticed this behavior a few minutes ago. We were not yet able to do further investigations but thought we need to report this issue asap.

Exact steps to reproduce

  1. Install a fresh Laravel project
  2. Install Livewire
  3. Make a new component and a Livewire method with a dd()
  4. Use a button in the component’s blade and trigger the Livewire method
  • If APP_DEBUG in .env file is set to true, a modal opens with the DD
  • If APP_DEBUG in .env file is set to false, nothing happens (not even a Livewire request)

Stripped-down, copy-pastable code snippets

Context

  • Livewire version: 2.5.0
  • Laravel version: 8.46.0
  • Alpine version: -
  • Browser: Crhome

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 9
  • Comments: 18 (4 by maintainers)

Most upvoted comments

Everything works fine with the release. Thanks for the quick PR @cubemastercodes and @nuernbergerA for keeping everyone up to date!

A PR is already open.

I am experiencing this issue after updating composer today, which pulled the latest commit.

    "laravel/framework": "^8.40",
    "laravel/jetstream": "^2.3",
    "livewire/livewire": "^2.5",

Everything works fine on local with APP_DEBUG=true. When changing to APP_DEBUG=false, the components stop working without any console logs.