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.Solution:Jump to 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 π
6 Replies
Is it a brand new laravel project?
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
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
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
What's the ouput of
php artisan about --only=filament
?
Did you run artisan filament:assets
?
Did you run artisan filament:upgrade
?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 π