F
Filament5mo ago
Code A

selectFormComponent is not defined

why this error occurs on the server selectFormComponent is not defined this occurs when I just update the code and deploy on the server what I have done delete old assets
sudo rm -rf public/vendor/livewire
sudo rm -rf public/vendor/filamen
sudo rm -rf public/vendor/livewire
sudo rm -rf public/vendor/filamen
republish
sudo php artisan filament:install --forms
sudo php artisan livewire:publish --assets
sudo php artisan filament:install --forms
sudo php artisan livewire:publish --assets
and clear the laravel cache
sudo php artisan optimize:clear
sudo php artisan config:clear
sudo php artisan view:clear
sudo php artisan cache:clear
sudo php artisan optimize:clear
sudo php artisan config:clear
sudo php artisan view:clear
sudo php artisan cache:clear
but this still doesn't solve the problem note: deploy in server vps ubuntu
4 Replies
Dennis Koch
Dennis Koch5mo ago
Check the network tab of your DevTools. Sounds like some JS files are missing. Then check the public folder whether those files actually exist
Code A
Code AOP5mo ago
this sometimes happens sometimes not when i deploy for update.
Code A
Code AOP5mo ago
log in console tab like this
No description
Dennis Koch
Dennis Koch5mo ago
I don't understand. Did you check the network tab and files? Are they there?

Did you find this page helpful?