Skip to content

Commit 64607d1

Browse files
committed
fix(compiler): crash when printing warning
1 parent 1bf34b0 commit 64607d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/transformers/decorators-to-static/component-decorator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ const validateComponent = (config: d.Config, diagnostics: d.Diagnostic[], typeCh
9595
Any other exports should be moved to a separate file.
9696
For further information check out: https://stenciljs.com/docs/module-bundling`;
9797
const errorNode = symbol.valueDeclaration
98-
? symbol.valueDeclaration.modifiers[0]
98+
? symbol.valueDeclaration
9999
: symbol.declarations[0];
100100

101101
augmentDiagnosticWithNode(config, err, errorNode);

0 commit comments

Comments
 (0)