Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Rretzko's avatar
Level 15

Livewire error after uninstalling Filament

Hi - I've just uninstalled Filament from my app:

  • composer remove Filament
  • deleted app/Filament directory
  • removed all Filament references from vendor\composer\autoload_classmap.php and vendor\composer\autoload_real.php.

Now I seem to have lost Livewire as well: when I open a livewire component with:

 <div class="bg-white dark:bg-gray-800 py-2 mb-4 overflow-hidden shadow-sm sm:rounded-lg w-full">

					//added for Forum documentation
                <div>dto[livewireComponent] = {{ $dto['livewireComponent'] }}</div>

                {{-- LIVEWIRE COMPONENT --}}
                @livewire($dto['livewireComponent'], ['dto' => $dto])

</div>

the page returns the text:

dto[livewireComponent] = schools.schools-table-component
@livewire($dto['livewireComponent'], ['dto' => $dto])

where the @livewire command seems to be ignored.

Other than pulling the app back down from GitHub, I'd appreciate any suggestions you might have! Thanks - Rick

0 likes
2 replies
LaryAI's avatar
LaryAI
AI
Best Answer
Level 58

It seems like the issue you're experiencing is related to the Livewire component not being rendered properly after uninstalling Filament. Here are a few steps you can take to troubleshoot and resolve this issue:

  1. Check Livewire Installation: Ensure that Livewire is still installed in your project. You can verify this by checking your composer.json file for the presence of livewire/livewire. If it's missing, you can reinstall it using:

    composer require livewire/livewire
    
  2. Clear Cached Views: Sometimes, cached views can cause issues. Clear your view cache by running:

    php artisan view:clear
    
  3. Clear Config Cache: If there are any cached configurations that might be causing the issue, clear them with:

    php artisan config:clear
    
  4. Check Blade Directives: Ensure that the @livewire directive is correctly set up. If Livewire is installed, the directive should be available. If not, there might be an issue with the Livewire service provider not being registered.

  5. Check for JavaScript Errors: Open your browser's developer console and check for any JavaScript errors that might indicate why Livewire components are not being rendered.

  6. Verify Component Registration: Make sure that the Livewire component schools.schools-table-component is correctly registered and exists in your application. The class should be located in the app/Http/Livewire directory by default.

  7. Re-publish Livewire Assets: If the Livewire assets are missing or corrupted, you can re-publish them using:

    php artisan livewire:publish --assets
    
  8. Check for Conflicting Packages: Ensure that there are no other packages that might conflict with Livewire. Sometimes, removing a package like Filament might inadvertently affect others if they have shared dependencies.

By following these steps, you should be able to identify and resolve the issue with your Livewire components not rendering. If the problem persists, consider checking the Laravel and Livewire documentation for any additional troubleshooting steps or reaching out to the community for further assistance.

Rretzko's avatar
Level 15

In case anyone else runs into this, Filament contains and installs the livewire/livewire app (and maybe overwrites the base Laravel version?), so removing Filament also removes livewire. As Livewire is a first party app with Laravel, this seems pretty amazing, but that's what happened.

I fetched and reset my local version back to the github master and everything is working again on local. I still want to remove Filament, but that may require starting a new environment to avoid this problem...

Please or to participate in this conversation.