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
Upgrade the repack version to 5.0.0-rc.5, encountered:
[DevServer] Cannot destructure property 'time' of 'stats.toJson(...)' as it is null. {
reqId: 'req-1',
err: {
type: 'TypeError',
message: "Cannot destructure property 'time' of 'stats.toJson(...)' as it is null.",
stack: "TypeError: Cannot destructure property 'time' of 'stats.toJson(...)' as it is null.\n" +
' at Object.fn (/Users/vn564c0/Repack/RepackApp1/node_modules/@callstack/repack/dist/plugins/LoggerPlugin.js:124:11)\n' +
' at next (/Users/vn564c0/Repack/RepackApp1/node_modules/@rspack/lite-tapable/dist/index.js:523:25)\n' +
' at AsyncSeriesHook.callAsyncStageRange (/Users/vn564c0/Repack/RepackApp1/node_modules/@rspack/lite-tapable/dist/index.js:543:9)\n' +
' at AsyncSeriesHook.callAsync (/Users/vn564c0/Repack/RepackApp1/node_modules/@rspack/lite-tapable/dist/index.js:82:21)\n' +
' at Watching._done (/Users/vn564c0/Repack/RepackApp1/node_modules/@rspack/core/dist/index.js:13245:30)\n' +
' at onCompile (/Users/vn564c0/Repack/RepackApp1/node_modules/@rspack/core/dist/index.js:13215:14)\n' +
' at /Users/vn564c0/Repack/RepackApp1/node_modules/@rspack/core/dist/index.js:13805:18\n' +
' at done (/Users/vn564c0/Repack/RepackApp1/node_modules/@rspack/lite-tapable/dist/index.js:473:13)\n' +
' at AsyncSeriesHook.callAsyncStageRange (/Users/vn564c0/Repack/RepackApp1/node_modules/@rspack/lite-tapable/dist/index.js:480:20)\n' +
' at AsyncSeriesHook.callAsync (/Users/vn564c0/Repack/RepackApp1/node_modules/@rspack/lite-tapable/dist/index.js:82:21)\n' +
' at /Users/vn564c0/Repack/RepackApp1/node_modules/@rspack/core/dist/index.js:13801:33\n' +
' at /Users/vn564c0/Repack/RepackApp1/node_modules/@rspack/core/dist/index.js:13845:37'
}
}
Investigated it briefly, seems like in the mini app config the compilation breaks on the native (rust) side but the node process continues as normal returning stats as null (which according to the typescript definitions shouldn't be happening).
Seems like this is a problem within Rspack and should be upstreamed there, I'll take care of that 👍
Describe the bug
Upgrade the repack version to 5.0.0-rc.5, encountered:
System Info
Re.Pack Version
5.0.0.rc.5
Reproduction
https://github.com/ra1nj/RepackHost/tree/rc.5 , https://github.com/ra1nj/RepackApp1/tree/rc.5
Steps to reproduce
The text was updated successfully, but these errors were encountered: