F
Filamentβ€’7mo 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β€’7mo ago
That's weird. Maybe some issues with Livewire's diffing? πŸ€”
morawcik
morawcikOPβ€’7mo 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β€’7mo ago
That's even weirder. Any difference in versions?
morawcik
morawcikOPβ€’7mo ago
Nope - I even manually uploaded files to have everything the same
Dennis Koch
Dennis Kochβ€’7mo ago
Do you use ->spa() mode?
morawcik
morawcikOPβ€’7mo 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β€’7mo ago
Still weird that spa mode only has problems on production
morawcik
morawcikOPβ€’7mo ago
The only difference is apache (local) vs nginx (server) πŸ€”
Want results from more Discord servers?
Add your server