Meituan-Dianping/mpvue · error
Error in ${info}: "${err.toString()}"
Error message
Error in ${info}: "${err.toString()}" What it means
Standard error reporting from handleError: when an error propagates from a lifecycle hook, watcher, directive, or render call and no global config.errorHandler is installed, Vue logs the message including the info string identifying where the error occurred. The thrown/caught err itself is the root cause; this message is the wrapper that names the phase (info) that failed.
Source
Thrown at packages/weex-vue-framework/factory.js:537
return '\n\nfound in\n\n' + tree
.map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
: formatComponentName(vm))); })
.join('\n')
} else {
return ("\n\n(found in " + (formatComponentName(vm)) + ")")
}
};
}
/* */
function handleError (err, vm, info) {
if (config.errorHandler) {
config.errorHandler.call(null, err, vm, info);
} else {
if (process.env.NODE_ENV !== 'production') {
warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
}
/* istanbul ignore else */
if (inBrowser && typeof console !== 'undefined') {
console.error(err);
} else {
throw err
}
}
}
/* */
/* globals MutationObserver */
// can we use __proto__?
var hasProto = '__proto__' in {};
// Browser environment sniffing
var inBrowser = typeof window !== 'undefined';View on GitHub (pinned to 6c5d78ee04)
Solutions
- Read the info argument and component trace to locate the failing hook or render function
- Install Vue.config.errorHandler to capture errors centrally (e.g. for Sentry)
- Fix the underlying err shown in the message
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at packages/weex-vue-framework/factory.js:537 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Meituan-Dianping/mpvue@6c5d78ee04 (2026-09-02).
Data as JSON: /api/errors/ec62fb17bc35efc3.
Report an issue: GitHub.