Home / Function/ onCompilationError() — vue Function Reference

onCompilationError() — vue Function Reference

Architecture documentation for the onCompilationError() function in render.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  b46508de_73c3_6ec9_1c0c_c6c525b0a7ce["onCompilationError()"]
  6c43050a_c466_5002_9f37_18f1d5f11833["generateComponentTrace()"]
  b46508de_73c3_6ec9_1c0c_c6c525b0a7ce -->|calls| 6c43050a_c466_5002_9f37_18f1d5f11833
  style b46508de_73c3_6ec9_1c0c_c6c525b0a7ce fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/server-renderer/src/render.ts lines 28–31

const onCompilationError = (err, vm) => {
  const trace = vm ? generateComponentTrace(vm) : ''
  throw new Error(`\n\u001b[31m${err}${trace}\u001b[39m\n`)
}

Subdomains

Frequently Asked Questions

What does onCompilationError() do?
onCompilationError() is a function in the vue codebase.
What does onCompilationError() call?
onCompilationError() calls 1 function(s): generateComponentTrace.

Analyze Your Own Codebase

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

Try Supermodel Free