We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c99090 commit b8e478fCopy full SHA for b8e478f
packages/@lwc/ssr-compiler/src/compile-js/index.ts
@@ -166,6 +166,7 @@ const visitors: Visitors = {
166
}
167
} else if (is.identifier(decoratedExpression) && decoratedExpression.name === 'api') {
168
if (state.publicProperties.includes(node.key.name)) {
169
+ // TODO [#5032]: Harmonize errors thrown in `@lwc/ssr-compiler`
170
throw new Error(
171
`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.`
172
);
0 commit comments