F
Filamentβ€’14mo ago
webcitron

Styles are not being loaded in browser although they are visible in chrome inspector

Got first bigger problem. Im using local based project. Istalled Laravel, filament, added some very simple form. Im backend developer so I did not configuired any special filament settings, im using just Filament defaults. Was developing project under just http://localhost domain. Today, I've changes host into http://xxx.yyy.localhost (still served from my localhost via docker containers; im not using connection over ssl). And at this point styles from my filament panel are gone. Screenshot from chrome is attached. Besides that evrrything works ok (panel is loading, it allow me to login, browse resources etc) I've tried to run all artisan commands which are cleaning cache/configs/everything and nothing helped. Interesting and important is that all css/js files seems to be loaded correctly and visible in chrome inspector (screenshots). Any ideas/suggestions how I can fix that problem ?
No description
No description
No description
5 Replies
cheesegrits
cheesegritsβ€’14mo ago
What is your APP_URL set to?
Dennis Koch
Dennis Kochβ€’14mo ago
Does the Stylesheet contain all/most of the required classes?
webcitron
webcitronOPβ€’14mo ago
its correct:
~ % docker exec backoffice | grep APP_URL
APP_URL=http://xxx.yyy.localhost/
~ % docker exec backoffice | grep APP_URL
APP_URL=http://xxx.yyy.localhost/
cheesegrits
cheesegritsβ€’14mo ago
Are you running npm dev in host or container?
webcitron
webcitronOPβ€’14mo ago
yes, they should be applied well, looks like im not using npm dev/ i was following filament documentation i dont remember any mention of npm usage, i did not use it intentionally too πŸ™‚ anyway, before changing hostname all styles were loaded correctly explaining even wider. in chrome inspector i see that css file is loaded. i can see some clases defined. in loaded page (css are not applied) i can see usage of these clasess. long story short - looks like css should be applied to the page.
Want results from more Discord servers?
Add your server