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
But then if I reload entire page it works fine
![No description](https://answer-overflow-discord-attachments.s3.us-east-1.amazonaws.com/1243887862655619103/333792627-07c3d02a-b85a-48f0-a06b-1bab2cacdcea.png)
8 Replies
That's weird. Maybe some issues with Livewire's diffing? π€
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 π€
That's even weirder. Any difference in versions?
Nope - I even manually uploaded files to have everything the same
Do you use
->spa()
mode?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
Still weird that spa mode only has problems on production
The only difference is apache (local) vs nginx (server) π€