Skip to content

Commit b8e478f

Browse files
chore: add throw TODO
1 parent 2c99090 commit b8e478f

File tree

1 file changed

+1
-0
lines changed
  • packages/@lwc/ssr-compiler/src/compile-js

1 file changed

+1
-0
lines changed

packages/@lwc/ssr-compiler/src/compile-js/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ const visitors: Visitors = {
166166
}
167167
} else if (is.identifier(decoratedExpression) && decoratedExpression.name === 'api') {
168168
if (state.publicProperties.includes(node.key.name)) {
169+
// TODO [#5032]: Harmonize errors thrown in `@lwc/ssr-compiler`
169170
throw new Error(
170171
`LWC1112: @api get ${node.key.name} and @api set ${node.key.name} detected in class declaration. Only one of the two needs to be decorated with @api.`
171172
);

0 commit comments

Comments
 (0)