Skip to content

QuizNot attempted

Same failure, different messages

Which of these errors mean "a code-split chunk failed to load"? Select all that apply.

Select all that apply.

1–5 to choose, Enter to submit
Show answer & explanation

Correct answers:

  • ChunkLoadError: Loading chunk 42 failed. (webpack)
  • TypeError: Failed to fetch dynamically imported module: …/Page-a1.js (Chrome)
  • TypeError: error loading dynamically imported module: …/Page-a1.js (Firefox)
  • TypeError: Importing a module script failed. (Safari)
  • webpack wraps chunk failures in its own ChunkLoadError
  • with native import() (Vite builds) each browser reports a failed module fetch as a TypeError with its own wording.
  • Error monitoring and reload handlers need to recognise all of them.
  • Not the hydration error: that means the first client render produced different markup than the server HTML, which is unrelated to loading chunks.