Home / Function/ throwProcessingError() — vite Function Reference

throwProcessingError() — vite Function Reference

Architecture documentation for the throwProcessingError() function in optimizedDeps.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  71bb2f3f_3aad_f3d5_db95_883bd60c383b["throwProcessingError()"]
  1ad5c135_fc65_cc8f_2918_6f109d7fd644["optimizedDeps.ts"]
  71bb2f3f_3aad_f3d5_db95_883bd60c383b -->|defined in| 1ad5c135_fc65_cc8f_2918_6f109d7fd644
  daaf9cbf_e2ae_6c47_2a70_91fb6babc950["optimizedDepsPlugin()"]
  daaf9cbf_e2ae_6c47_2a70_91fb6babc950 -->|calls| 71bb2f3f_3aad_f3d5_db95_883bd60c383b
  style 71bb2f3f_3aad_f3d5_db95_883bd60c383b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/src/node/plugins/optimizedDeps.ts lines 101–110

function throwProcessingError(id: string): never {
  const err: any = new Error(
    `Something unexpected happened while optimizing "${id}". ` +
      `The current page should have reloaded by now`,
  )
  err.code = ERR_OPTIMIZE_DEPS_PROCESSING_ERROR
  // This error will be caught by the transform middleware that will
  // send a 504 status code request timeout
  throw err
}

Domain

Subdomains

Frequently Asked Questions

What does throwProcessingError() do?
throwProcessingError() is a function in the vite codebase, defined in packages/vite/src/node/plugins/optimizedDeps.ts.
Where is throwProcessingError() defined?
throwProcessingError() is defined in packages/vite/src/node/plugins/optimizedDeps.ts at line 101.
What calls throwProcessingError()?
throwProcessingError() is called by 1 function(s): optimizedDepsPlugin.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free