diff --git a/node_package/src/ReactOnRails.ts b/node_package/src/ReactOnRails.ts index 788ac4731..bce342156 100644 --- a/node_package/src/ReactOnRails.ts +++ b/node_package/src/ReactOnRails.ts @@ -304,8 +304,7 @@ ctx.ReactOnRails = { /** * Used by rsc payload generation by Rails */ - // eslint-disable-next-line @typescript-eslint/no-unused-vars - serverRenderRSCReactComponent(_): Readable { + serverRenderRSCReactComponent(): Readable { throw new Error('serverRenderRSCReactComponent is supported in RSC bundle only.'); },