F
Filamentβ€’5mo ago
Femi O.

Help with Filament/Livewire setup

Hi all, I'm trying to follow this guide: https://filamentphp.com/docs/3.x/tables/adding-a-table-to-a-livewire-component The table is displaying just fine on my webpage, but no sorting logic is working when I click. In my browser console, I'm seeing the following 404s: Failed to load resource: the server responded with a status of 404 (Not Found)Understand this error /css/filament/support/support.css?v=3.2.97.0:1 Failed to load resource: the server responded with a status of 404 (Not Found)Understand this error async-alpine.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)Understand this error notifications.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)Understand this error support.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)Understand this error client:495 [vite] connecting... client:614 [vite] connected. support.css:1 Failed to load resource: the server responded with a status of 404 (Not Found)Understand this error forms.css:1 Failed to load resource: the server responded with a status of 404 (Not Found)Understand this error I imagine if .js files aren't being accessed, it would explain why no interactions are working, and also why my styling looks a bit off (screenshot) Where should I start debugging? I can send code snippets if necessary.
No description
Solution:
Figured it out. Was a simple error where I didn't properly use all of the CLI commands, so some of the files were missing after I started over a few times. Thanks both πŸ™‚
Jump to solution
6 Replies
Bruno Pereira
Bruno Pereiraβ€’5mo ago
Is it a brand new laravel project?
Bruno Pereira
Bruno Pereiraβ€’5mo ago
I think you need to do this first https://filamentphp.com/docs/3.x/tables/installation And when you have the necessary packages installed, you follow the things on your link
Femi O.
Femi O.OPβ€’5mo ago
Yes, I did follow those instructions - seems to be working fine since Tailwind is working as expected At least, the styling is but somehow the JS isn't loading properly it seems
Bruno Pereira
Bruno Pereiraβ€’5mo ago
What if you install composer require filament/filament:"^3.2" -W and run npm run dev maybe you need the core package and then the tables package
Dennis Koch
Dennis Kochβ€’5mo ago
What's the ouput of php artisan about --only=filament? Did you run artisan filament:assets? Did you run artisan filament:upgrade?
Solution
Femi O.
Femi O.β€’5mo ago
Figured it out. Was a simple error where I didn't properly use all of the CLI commands, so some of the files were missing after I started over a few times. Thanks both πŸ™‚
Want results from more Discord servers?
Add your server