Skip to content

Commit 37a0aaf

Browse files
authoredAug 14, 2024··
fix(compiler): verify parent node when validating component members (#5942)
1 parent 8f92b11 commit 37a0aaf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/compiler/transformers/static-to-meta/component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ const validateComponentMembers = (node: ts.Node) => {
201201
/**
202202
* the parent node is a class declaration
203203
*/
204+
node.parent &&
204205
ts.isClassDeclaration(node.parent)
205206
) {
206207
const propName = node.name.escapedText;

0 commit comments

Comments
 (0)
Please sign in to comment.