diff --git a/STYLE_GUIDE.md b/STYLE_GUIDE.md index e57ad9f821f..35df25f23f1 100644 --- a/STYLE_GUIDE.md +++ b/STYLE_GUIDE.md @@ -212,7 +212,7 @@ export class Something { connectedCallback() {} componentWillLoad() {} componentDidLoad() {} - disconnectedCallbac() {} + disconnectedCallback() {} /** * 8. Listeners diff --git a/src/compiler/transformers/decorators-to-static/method-decorator.ts b/src/compiler/transformers/decorators-to-static/method-decorator.ts index d35fe166659..2e930950b7b 100644 --- a/src/compiler/transformers/decorators-to-static/method-decorator.ts +++ b/src/compiler/transformers/decorators-to-static/method-decorator.ts @@ -95,7 +95,7 @@ export const validateMethods = (diagnostics: d.Diagnostic[], members: ts.NodeArr if (method.name.getText() === 'componentDidUnload') { const err = buildError(diagnostics); err.header = `Replace "componentDidUnload()" with "disconnectedCallback()"`; - err.messageText = `The "componentDidUnload()" method was removed in Stencil 2. Please use the "disconnectedCallbac()" method instead.`; + err.messageText = `The "componentDidUnload()" method was removed in Stencil 2. Please use the "disconnectedCallback()" method instead.`; augmentDiagnosticWithNode(err, method.name); } });