File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed
react_on_rails_pro/packages/node-renderer/tests Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -113,9 +113,9 @@ class RSCRequestTracker {
113113 // Validate that the generateRSCPayload function is available
114114 if ( ! this . generateRSCPayload ) {
115115 throw new Error (
116- 'generateRSCPayload is not defined. Please ensure that you are using at least version 4.0.0 of ' +
117- 'React on Rails Pro and the Node renderer, and that ReactOnRailsPro.configuration.enable_rsc_support ' +
118- 'is set to true .' ,
116+ 'generateRSCPayload function is not available. This could mean: ' +
117+ '(1) ReactOnRailsPro.configuration.enable_rsc_support is not enabled, or ' +
118+ '(2) You are using an incompatible version of React on Rails Pro (requires 4.0.0+) .' ,
119119 ) ;
120120 }
121121
Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ export type ItemRegistrationCallback<T> = (component: T) => void;
219219export type GenerateRSCPayloadFunction = (
220220 componentName : string ,
221221 props : unknown ,
222- railsContext : RailsContext ,
222+ railsContext : RailsContextWithServerComponentMetadata ,
223223) => Promise < NodeJS . ReadableStream > ;
224224
225225interface Params {
Original file line number Diff line number Diff line change 11import http2 from 'http2' ;
2- import * as fs from 'fs' ;
32import buildApp from '../src/worker' ;
43import { createTestConfig } from './testingNodeRendererConfigs' ;
54import * as errorReporter from '../src/shared/errorReporter' ;
You can’t perform that action at this time.
0 commit comments