Skip to content

Commit

Permalink
fix(compiler): verify parent node when validating component members (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann authored Aug 14, 2024
1 parent 8f92b11 commit 37a0aaf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/compiler/transformers/static-to-meta/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ const validateComponentMembers = (node: ts.Node) => {
/**
* the parent node is a class declaration
*/
node.parent &&
ts.isClassDeclaration(node.parent)
) {
const propName = node.name.escapedText;
Expand Down

0 comments on commit 37a0aaf

Please sign in to comment.