We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bb7cba commit 4740597Copy full SHA for 4740597
src/core/util/debug.js
@@ -22,14 +22,17 @@ if (process.env.NODE_ENV !== 'production') {
22
const name = vm._isVue
23
? vm.$options.name || vm.$options._componentTag
24
: vm.name
25
- return name ? `component <${name}>` : `anonymous component`
+ return (
26
+ (name ? `component <${name}>` : `anonymous component`) +
27
+ (vm._isVue && vm.$options.__file ? ` at ${vm.$options.__file}` : '')
28
+ )
29
}
30
31
const formatLocation = str => {
32
if (str === 'anonymous component') {
33
str += ` - use the "name" option for better debugging messages.`
34
- return `(found in ${str})`
35
+ return `\n(found in ${str})`
36
37
38
0 commit comments