How to solve the problem of getting static js failure in vue project. Loading chunk XX failed

clipboard.png

the error is shown in the figure, but it is normal after refresh.

has referred to the answer https://codeshelper.com/q/10., modified nginx, but has no effect.
it is speculated that it has something to do with caching, and the error occurs only when the user stays on the page too long.

Can

provide a better solution?

Jun.16,2021

https://codeshelper.com/a/11.


window.onerror catch and analyze errors. If it is loading chunk fail , the page pop-up window prompts you to refresh

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e479e1-43983.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e479e1-43983.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?