Skip to content

[Bug]: Rsdoctor build error when rspack MultiCompiler scene #484

Open
@guopingxiao

Description

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

Metadata

Assignees

No one assigned

    Labels

    🐞 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions