diff --git a/src/compile/Component.ts b/src/compile/Component.ts index f2b6d25121..62c2931f62 100644 --- a/src/compile/Component.ts +++ b/src/compile/Component.ts @@ -1143,9 +1143,12 @@ export default class Component { if (template_scope && template_scope.names.has(name)) return; if (globalWhitelist.has(name)) return; + let message = `'${name}' is not defined`; + if (!this.ast.instance) message += `. Consider adding a