Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
guopingxiao opened this issue Aug 29, 2024 · 3 comments
Open

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

guopingxiao opened this issue Aug 29, 2024 · 3 comments
Labels
🐞 bug Something isn't working

Comments

@guopingxiao
Copy link

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 guopingxiao added the 🐞 bug Something isn't working label Aug 29, 2024
@guopingxiao guopingxiao changed the title [Bug]: Rsdoctor [Bug]: Rsdoctor build error when rspack MultiCompiler scene Aug 29, 2024
@easy1090
Copy link
Collaborator

You can try to use the multiRspackPlugin of rsdoctor, 每个 rspack compiler 配置一下 rsdoctor plugin.

similar as: https://github.com/web-infra-dev/rsdoctor/blob/main/examples/multiple-minimal/build.ts

@chenjiahan
Copy link
Member

@easy1090 I think we should add RsdoctorWebpackMultiplePlugin to the documentation and add a guide for MultiCompiler.

@easy1090
Copy link
Collaborator

easy1090 commented Sep 4, 2024

@easy1090 I think we should add RsdoctorWebpackMultiplePlugin to the documentation and add a guide for MultiCompiler.

ok, I add this documents.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants