diff --git a/src/react/core/create-component.ts b/src/react/core/create-component.ts index c8b8f80a0e..669c72f122 100644 --- a/src/react/core/create-component.ts +++ b/src/react/core/create-component.ts @@ -235,7 +235,7 @@ export const createComponent = ): ReactWebComponent => { const eventProps = new Set(Object.keys(events ?? {})); - if (DEV_MODE) { + if (DEV_MODE && !NODE_MODE) { for (const p of reservedReactProperties) { if (p in elementClass.prototype && !(p in HTMLElement.prototype)) { // Note, this effectively warns only for `ref` since the other