M
M
Maxim Bredikhin2021-02-08 15:25:15
JavaScript
Maxim Bredikhin, 2021-02-08 15:25:15

How to solve the problem with falling off chunks after deploying a new version of the SPA application?

There is an application on Vue, js bundle is divided into chunks. After the new version is deployed, users get the following error Loading chunk chunk-2d0b5fd9 failed.
. As I understand it, this is due to the fact that html refers to chunks that no longer exist. How can this problem be solved?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Anton, 2021-02-08
@Fragster

Have it load all chunks in the background on app load: https://webpack.js.org/guides/code-splitting/#pref...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question