You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constserverResponse=createFromReadableStream(renderStream,{ssrManifest: {moduleMap: ssrModuleMapping,// This way can also solve the error// moduleLoading: null,},});// Both prerender and resume faild when ssrManifest.moduleLoading === undefined// <Root /> comes from serverResponse const{ prelude, postponed }=awaitprerenderToNodeStream(<Root/>,prerenderOptions);const{ pipe }=awaitresumeToPipeableStream(<Root/>,postponed,resumeOptions);
Link to code example:
The current behavior
TypeError: Cannot read properties of undefined (reading 'prefix') at prepareDestinationWithChunks
// In fact, this is not a bug in the general sense, but it may make prepareDestinationWithChunks more rigorous.exportfunctionprepareDestinationWithChunks(moduleLoading: ModuleLoading,// Chunks are double-indexed [..., idx, filenamex, idy, filenamey, ...]chunks: Array<string>,nonce: ?string){// or if (moduleLoading) {}if(moduleLoading!==null&&moduleLoading!==undefined){for(leti=1;i<chunks.length;i+=2){preinitScriptForSSR(moduleLoading.prefix+chunks[i],nonce,moduleLoading.crossOrigin);}}}
The text was updated successfully, but these errors were encountered:
gaoachao
changed the title
Bug: []moduleLoading === undefined In function prepareDestinationWithChunks
Bug: [PPR] resume failed when "moduleLoading === undefined" in function prepareDestinationWithChunks
Mar 27, 2024
gaoachao
changed the title
Bug: [PPR] resume failed when "moduleLoading === undefined" in function prepareDestinationWithChunks
Bug: [PPR] Resume failed when "moduleLoading === undefined" in function prepareDestinationWithChunks
Mar 27, 2024
React version:
experimental
Steps To Reproduce
Link to code example:
The current behavior
TypeError: Cannot read properties of undefined (reading 'prefix') at prepareDestinationWithChunks
The expected behavior
The text was updated successfully, but these errors were encountered: