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
- Install a fresh Laravel project
- Install Livewire
- Make a new component and a Livewire method with a
dd() - Use a button in the component’s blade and trigger the Livewire method
- If
APP_DEBUGin.envfile is set totrue, a modal opens with the DD - If
APP_DEBUGin.envfile is set tofalse, 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)
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.
Everything works fine on local with
APP_DEBUG=true. When changing toAPP_DEBUG=false, the components stop working without any console logs.