rsbuild icon indicating copy to clipboard operation
rsbuild copied to clipboard

[Bug]: When starting with Rsdoctor, I still get the message "rspack-plugin" even though it has been installed.

Open zhangdaren opened this issue 1 year ago • 11 comments

Version

windows
edge
 "@rsbuild/core": "^1.0.1-rc.0",
    "@rsbuild/plugin-babel": "^1.0.1-rc.0",
    "@rsbuild/plugin-less": "^1.0.1-rc.0",
    "@rsbuild/plugin-node-polyfill": "^1.0.4",
    "@rsbuild/plugin-sass": "^1.0.1-rc.0",
    "@rsbuild/plugin-vue2": "^1.0.1",
    "@rsbuild/plugin-vue2-jsx": "^1.0.1-beta.14",
    "@rsdoctor/rspack-plugin": "^0.3.11",

Details

如图所示:image,已经安装了rspack-plugin,应该不需要再提示了。

Reproduce link

Reproduce Steps

zhangdaren avatar Sep 03 '24 06:09 zhangdaren

Hello @zhangdaren. Please provide a reproduction repository or online demo. For background, see Why reproductions are required. Thanks ❤️

github-actions[bot] avatar Sep 03 '24 06:09 github-actions[bot]

I have added a fix for this issue., can you try the latest RC version? https://github.com/web-infra-dev/rsbuild/releases/tag/v1.0.1-rc.4

chenjiahan avatar Sep 05 '24 03:09 chenjiahan

Neither rc4 or rc5 solves it for me on windows with pnpm

melMass avatar Sep 08 '24 16:09 melMass

Here is the reproduction: https://github.com/melMass/reproduction/tree/js/rsbuild-rsdoctor

melMass avatar Sep 08 '24 17:09 melMass

@melMass I wasn't able to reproduce the issue using the reproduction. Could you try deleting the node_modules directory and then run pnpm install again

image

yifancong avatar Sep 09 '24 03:09 yifancong

@easy1090 are you using Windows?

chenjiahan avatar Sep 09 '24 03:09 chenjiahan

@chenjiahan I didn't notice Windows. Let me try it on Windows.

yifancong avatar Sep 09 '24 03:09 yifancong

I guess this issue is similar to this one: https://github.com/rspack-contrib/rsbuild-plugin-ejs/pull/2/files

Using pathToFileURL should fix it.

chenjiahan avatar Sep 09 '24 03:09 chenjiahan

Could you try deleting the node_modules directory and then run pnpm install again

The reproduction was made from scratch so I don't think it's that, unless you mean clearing the cache of pnpm? I had the issue in my project, found this ticket, tried in isolation (the reproduction)

melMass avatar Sep 09 '24 12:09 melMass

As the issue was labelled with need reproduction, but no response in 5 days. This issue will be closed. Feel free to comment and reopen it if you have any further questions. For background, see Why reproductions are required.

由于该 issue 被标记为 "需要重现",但在 5 天内没有回应,因此该 issue 将被关闭。如果你有任何进一步的问题,请随时发表评论并重新打开该 issue。背景请参考 为什么需要最小重现

github-actions[bot] avatar Sep 15 '24 00:09 github-actions[bot]

As the issue was labelled with need reproduction, but no response in 5 days. This issue will be closed. Feel free to comment and reopen it if you have any further questions. For background, see Why reproductions are required.

由于该 issue 被标记为 "需要重现",但在 5 天内没有回应,因此该 issue 将被关闭。如果你有任何进一步的问题,请随时发表评论并重新打开该 issue。背景请参考 为什么需要最小重现

github-actions[bot] avatar Sep 21 '24 00:09 github-actions[bot]