-
-
Notifications
You must be signed in to change notification settings - Fork 603
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
Peer dependency issue with fork-ts-checker-webpack-plugin in rspack #5211
Comments
yeah, you can make a pr to add @rspack/core as optional peerDeps of fork-ts-checker-webpack-plugin like what we do for webpack-dev-server webpack/webpack-dev-server#4778 |
I followed the approach outlined at webpack/webpack-dev-server#4778 to fork the "peerDependenciesMeta": {
"webpack": {
"optional": true
}
} However, when building the project, I still encounter the error: |
@hardfist Are there any alternative approaches I could resolve this issue, please? |
@sivanzheng can you provide a repro demo? |
Archive.zip |
@hardfist Have you had the chance to try out this demo? I look forward to your response. |
|
@hardfist After multiple attempts, the problem seems to be in my build process. Thank you for your response. |
What problem does this feature solve?
I'm currently using fork-ts-checker-webpack-plugin in rspack. However, fork-ts-checker-webpack-plugin has a peerDependencies requirement for webpack, which means that my project needs to install an additional webpack. This issue seems similar to #4537. I would like to know if there are any plans to address this or if there are any alternative plugins that can be used as a replacement.
What does the proposed API of configuration look like?
The text was updated successfully, but these errors were encountered: