After enabling Blaze::optimize() and targeting the components directory, the application fails to render. The browser displays a blank white page with no error messages, and the Blaze profiler stays stuck on a "Loading..." state.
Steps To Reproduce
- Install livewire/blaze and livewire/flux (compatible versions).
- Add the following to the boot method of AppServiceProvider.php:
public function boot(): void{
\Livewire\Blaze\Blaze::optimize()->in(resource_path('views/components'));
}
- Run php artisan view:clear in the terminal.
- Refresh the application in the browser.
- The page results in a completely white screen (WSOD).
- No errors are logged in laravel.log or displayed on the screen.
- The Blaze profiler bar appears but remains in a "loading" state indefinitely.
- Removing the Blaze::optimize() line resolves the issue immediately.
After enabling Blaze::optimize() and targeting the components directory, the application fails to render. The browser displays a blank white page with no error messages, and the Blaze profiler stays stuck on a "Loading..." state.
Steps To Reproduce
public function boot(): void{
\Livewire\Blaze\Blaze::optimize()->in(resource_path('views/components'));
}