Skip to content

White screen / Silent failure when using Blaze::optimize() in AppServiceProvider #82

@vnshah

Description

@vnshah

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

  1. Install livewire/blaze and livewire/flux (compatible versions).
  2. Add the following to the boot method of AppServiceProvider.php:

    public function boot(): void{
    \Livewire\Blaze\Blaze::optimize()->in(resource_path('views/components'));
    }
  3. Run php artisan view:clear in the terminal.
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions