Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(筆記) Loading chunk 0 failed. #122

Open
gracekrcx opened this issue Oct 12, 2021 · 0 comments
Open

(筆記) Loading chunk 0 failed. #122

gracekrcx opened this issue Oct 12, 2021 · 0 comments

Comments

@gracekrcx
Copy link
Owner

gracekrcx commented Oct 12, 2021

ChunkLoadError
Loading chunk 0 failed.

偶發情況
有可能是因為
有人在 browser 開啟頁面
都沒有關閉
這頁面在某一個 tab 停留很久
都沒有更新
但這中間我們已經上了新的版本
所以當 user 重新回到頁面時
原本的 cache 已經過期了
但 server 也找不到相同的檔案了
因為 server 的檔案 hash 值已經改變
所以非常有有可能他重新整裡就 ok 了

追究起因,是 source 已消失
下次上版時可以確認一下

參考資料
Vue项目中出现Loading chunk {n} failed问题的解决方法

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant