Home / Function/ warn() — vue Function Reference

warn() — vue Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  ebfb9ce8_9cf8_d198_35e1_0cd388232711["warn()"]
  e0d105a1_9025_aba1_042f_43ea81663586["warnOnce()"]
  e0d105a1_9025_aba1_042f_43ea81663586 -->|calls| ebfb9ce8_9cf8_d198_35e1_0cd388232711
  style ebfb9ce8_9cf8_d198_35e1_0cd388232711 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/compiler-sfc/src/warn.ts lines 12–16

export function warn(msg: string) {
  console.warn(
    `\x1b[1m\x1b[33m[@vue/compiler-sfc]\x1b[0m\x1b[33m ${msg}\x1b[0m\n`
  )
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does warn() do?
warn() is a function in the vue codebase.
What calls warn()?
warn() is called by 1 function(s): warnOnce.

Analyze Your Own Codebase

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

Try Supermodel Free