System Design · Senior · Question 27 of 75

Why do users get a ChunkLoadError after an SPA deploy?

Explanation

Hashed names change, and a lazily loaded chunk of the old version disappears. Solutions: keep assets from the last few releases, catch the error and reload the page, version skew protection (deploymentId in Next.js).

Further reading

Problem with a question

System Design · Senior · question 27

Test yourself

Take the System Design · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz