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
I'm struggling to reliably reproduce, but wanted to highlight that it's still somehow trying to access stats that it can't find when doing HMR.
If you can't investigate further without a repro then feel free to close this issue. I will try and understand a pattern for it to occur
● web ━━━━━━━━━━━━━━━━━━━━━━━━━ (98%) emitting emit Failed to get stats due to error: Unable to access compilation with id = CompilationId(1) now. The compilation have been removed on the Rust side. The latest compilation id is CompilationId(742), are you trying to access the stats from the previous compilation?
file:///Users/robhannay/web/node_modules/.pnpm/@[email protected]/node_modules/@rsbuild/core/dist/index.js:5275
if (statsJson.entrypoints) for (let entrypoint of Object.values(statsJson.entrypoints)){
^
TypeError: Cannot read properties of null (reading 'entrypoints')
at SocketServer.sendStats (file:///Users/robhannay/web/node_modules/.pnpm/@[email protected]/node_modules/@rsbuild/core/dist/index.js:5275:23)
at SocketServer.onConnect (file:///Users/robhannay/web/node_modules/.pnpm/@[email protected]/node_modules/@rsbuild/core/dist/index.js:5244:32)
at WebSocketServer.<anonymous> (file:///Users/robhannay/web/node_modules/.pnpm/@[email protected]/node_modules/@rsbuild/core/dist/index.js:5203:18)
at WebSocketServer.emit (node:events:518:28)
at file:///Users/robhannay/web/node_modules/.pnpm/@[email protected]/node_modules/@rsbuild/core/dist/index.js:5186:27
at WebSocketServer.completeUpgrade (/Users/robhannay/web/node_modules/.pnpm/@[email protected]/node_modules/@rsbuild/core/compiled/ws/index.js:2213:11)
at WebSocketServer.handleUpgrade (/Users/robhannay/web/node_modules/.pnpm/@[email protected]/node_modules/@rsbuild/core/compiled/ws/index.js:2150:16)
at SocketServer.upgrade (file:///Users/robhannay/web/node_modules/.pnpm/@[email protected]/node_modules/@rsbuild/core/dist/index.js:5185:58)
at CompilerDevMiddleware.upgrade (file:///Users/robhannay/web/node_modules/.pnpm/@[email protected]/node_modules/@rsbuild/core/dist/index.js:5491:27)
at Object.onUpgrade (file:///Users/robhannay/web/node_modules/.pnpm/@[email protected]/node_modules/@rsbuild/core/dist/index.js:6150:57)
at Http2SecureServer.onUpgrade (file:///Users/robhannay/web/node_modules/.pnpm/@[email protected]/node_modules/@rsbuild/core/dist/index.js:6066:42)
at Http2SecureServer.emit (node:events:518:28)
at onParserExecuteCommon (node:_http_server:950:14)
at onParserExecute (node:_http_server:852:3)
Node.js v22.14.0
Version
Details
I'm struggling to reliably reproduce, but wanted to highlight that it's still somehow trying to access stats that it can't find when doing HMR.
If you can't investigate further without a repro then feel free to close this issue. I will try and understand a pattern for it to occur
Followed up (from a child process I assume) with
Reproduce link
As I can't provide reliable repro steps, I can't necessarily make a minimal one
Reproduce Steps
pnpm rsbuild dev
The text was updated successfully, but these errors were encountered: