rsdoctor icon indicating copy to clipboard operation
rsdoctor copied to clipboard

[Bug]: Rsdoctor build error when rspack MultiCompiler scene

Open guopingxiao opened this issue 5 months ago • 3 comments

Version

"@rsdoctor/rspack-plugin": "^0.3.11",
  "@rspack/core": "^0.7.5",

Details

When Rsdoctor enables MultiCompiler in rspack, meaning rspack.config.js is an array, this.disposed = true prevents the server from being repeatedly initialized, leading to the error TypeError: Cannot read properties of undefined (reading 'app') at /@rsdoctor/sdk/dist/cjs/sdk/server/index.js:85 return this._server.app;.

image

Reproduce link

no

Reproduce Steps

when rspack is MultiCompiler

guopingxiao avatar Aug 29 '24 09:08 guopingxiao