MCPcopy
hub / github.com/vuejs/core / error

Method error

packages/compiler-sfc/src/script/context.ts:146–150  ·  view source on GitHub ↗
(msg: string, node: Node, scope?: TypeScope)

Source from the content-addressed store, hash-verified

144 }
145
146 error(msg: string, node: Node, scope?: TypeScope): never {
147 throw new Error(
148 `[@vue/compiler-sfc] ${generateError(msg, node, this, scope)}`,
149 )
150 }
151}
152
153function generateError(

Callers 15

compileScriptFunction · 0.95
isSSRSafeAttrNameFunction · 0.80
destroyFunction · 0.80
processPropsDestructureFunction · 0.80
registerLocalBindingFunction · 0.80
rewriteIdFunction · 0.80
checkUsageFunction · 0.80
processDefineSlotsFunction · 0.80
processDefineOptionsFunction · 0.80
processDefinePropsFunction · 0.80
processWithDefaultsFunction · 0.80

Calls 1

generateErrorFunction · 0.85

Tested by 2

compileScopedFunction · 0.64
setupPuppeteerFunction · 0.64