inventaire-client icon indicating copy to clipboard operation
inventaire-client copied to clipboard

"Loading chunk {some_module_name} failed." error

Open maxlath opened this issue 4 years ago • 0 comments

This happens when the client fails to load a dynamically imported chunk, which can have several reasons:

  • an existing browser tab had started a session when a new client build was released, and the files from the previous build were deleted, making the modules names known by that session obsolete
  • a network error

Work-arounds:

  • handle dynamic imports (see this comment): import('./chunk').then(doSomething).catch(retry).catch(showErrorMessage)
  • ask the user to reload the page (see this comment)

see webpack issue: https://github.com/webpack/webpack/issues/7502

maxlath avatar Dec 09 '20 20:12 maxlath