laravel-frontend-presets / tall

A TALL (Tailwind CSS, Alpine.js, Laravel and Livewire) Preset for Laravel
MIT License
2.42k stars 203 forks source link

Livewire component not found after initial setup #135

Closed A-Ramsey closed 10 months ago

A-Ramsey commented 1 year ago

Just did the initial setup of the tall stack with auth but i keep getting component not found. Everything is connected and the db is set up and working. Cannot figure out why its not working, I haven't added any code etc just connected to the database.

Stack trace below for error https://flareapp.io/share/pPvMXJ9m#context-livewire-component

danharrin commented 1 year ago

LW3 uses App/Livewire instead of App/Http/Livewire so I think it just needs to be migrated.

moayad-tarig commented 1 year ago

so what the solution ?

eduardohpaludo commented 1 year ago

I have the same problem

kieranmcclure commented 1 year ago

The package will need to be updated to accommodate for Livewire 3's new namespace, https://livewire.laravel.com/docs/upgrading#new-class-namespace

A work around for this at the moment is to configure Livewire to use the old Namespace,

  1. Make sure you have your Livewire configuration published with php artisan livewire:publish --config
  2. Edit your config file and change class_namespace from 'App\Livewire' to 'App\Http\Livewire
  3. Re-build your project and run php artisan optimize && php artisan optimize:clear

This should sort any issues you're having, tested on a clean project.

jamie-brown commented 12 months ago

Yep. I just used the livewire upgrade command: php artisan livewire:upgrade, which walks you through a migration that will automate most of this for you.

danharrin commented 12 months ago

Someone has a PR open (#132) but the tests are failing, if anyone fancies trying to fix it then I will merge their PR

DoubleClickDesignLtd commented 11 months ago

@jamie-brown thanks, that work for me!

benshawuk commented 10 months ago

I went through the upgrade steps and now authentication functionality has gone.

danharrin commented 10 months ago

Fixed by #132.