F
Filamentβ€’2mo ago
morawcik

JS files are commented

When I move from one page/resource to another (for e.g. from orders to products) I see that js files (filament and livewire files) are commented which creates a some js errors like
TypeError: Cannot read properties of undefined (reading 'uri')
TypeError: Cannot read properties of undefined (reading 'uri')
But then if I reload entire page it works fine
No description
8 Replies
Dennis Koch
Dennis Kochβ€’2mo ago
That's weird. Maybe some issues with Livewire's diffing? πŸ€”
morawcik
morawcikβ€’2mo ago
Is any way to test it or something? Also I don't know if it matters but I have this only on production server - at localhost everything is ok πŸ€”
Dennis Koch
Dennis Kochβ€’2mo ago
That's even weirder. Any difference in versions?
morawcik
morawcikβ€’2mo ago
Nope - I even manually uploaded files to have everything the same
Dennis Koch
Dennis Kochβ€’2mo ago
Do you use ->spa() mode?
morawcik
morawcikβ€’2mo ago
Also I can see in response that those scripts are not commented - seems like they are commented after that. Yes Without ->spa() it works fine (like this "hard refresh" I mentioned
Dennis Koch
Dennis Kochβ€’2mo ago
Still weird that spa mode only has problems on production
morawcik
morawcikβ€’2mo ago
The only difference is apache (local) vs nginx (server) πŸ€”