diff --git a/node_package/src/ReactOnRails.ts b/node_package/src/ReactOnRails.ts index a324ff84b..041b34944 100644 --- a/node_package/src/ReactOnRails.ts +++ b/node_package/src/ReactOnRails.ts @@ -301,8 +301,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.'); },