inventaire-client
inventaire-client copied to clipboard
"Loading chunk {some_module_name} failed." error
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