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]: There is a chance that the compilation will get stuck #3229

Closed
wengjiacheng opened this issue Aug 16, 2024 · 12 comments
Closed

[Bug]: There is a chance that the compilation will get stuck #3229

wengjiacheng opened this issue Aug 16, 2024 · 12 comments
Labels
🐞 bug Something isn't working need reproduction

Comments

@wengjiacheng
Copy link

Version

System:
    OS: macOS 13.3.1
    CPU: 2.5 GHz Intel Core i7
    Memory: 16 GB 2133 MHz LPDDR3
  Browsers:
    Chrome:  120.0.6099.109
  npmPackages:
       "@rsbuild/core": "^0.7.3",
    "@rsbuild/plugin-babel": "^0.7.3",
    "@rsbuild/plugin-css-minimizer": "^0.7.3",
    "@rsbuild/plugin-less": "^0.7.3",
    "@rsbuild/plugin-vue2": "^0.7.3",
    "@rsbuild/plugin-vue2-jsx": "^0.7.3",
    "@rsdoctor/rspack-plugin": "^0.3.10",

Details

在连续编译的时候会卡住,但是不是每次有概率会卡停止执行,卡在/Users/jxrt/Desktop/cbmc-corp-static-v2/node_modules/@rspack/core/dist/builtin-plugin/css-extract/loader.js!commonjs这里,把配置设置成样式内敛,编译就没问题了
感觉上像是抽离css文件时候出错了,由于不好复现,所以暂时提供不了demo

Reproduce link

NONE

Reproduce Steps

NONE

@wengjiacheng wengjiacheng added the 🐞 bug Something isn't working label Aug 16, 2024
@chenjiahan
Copy link
Member

Can you try the Rsbuild 1.0.1 beta?

@chenjiahan chenjiahan changed the title [Bug]: 编译打包会有概率卡住,将css文件不单独抽离,设置成内敛就没问题 [Bug]: There is a chance that the compilation will get stuck Aug 16, 2024
Copy link
Contributor

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

@wengjiacheng
Copy link
Author

Can you try the Rsbuild 1.0.1 beta?

试过1.0.1版本的 情况是一样的 , 但是确实不太好复现出demo

@chenjiahan
Copy link
Member

If there's no reproduction, it's hard to debug 😂

@wengjiacheng
Copy link
Author

If there's no reproduction, it's hard to debug 😂

我尝试复现出demo

@MattGXT
Copy link

MattGXT commented Aug 20, 2024

@chenjiahan have same issue here. It's hard to provide a reproduction.
The compilation will get stuck at 64% sometimes. I guess the problem is caused by stylesheets.

@wengjiacheng
Copy link
Author

@chenjiahan have same issue here. It's hard to provide a reproduction. The compilation will get stuck at 64% sometimes. I guess the problem is caused by stylesheets.

1233333

@chenjiahan
Copy link
Member

Sorry, we still need an reproduction

Copy link
Contributor

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 github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 26, 2024
@wengjiacheng
Copy link
Author

@chenjiahan have same issue here. It's hard to provide a reproduction. The compilation will get stuck at 64% sometimes. I guess the problem is caused by stylesheets.

Have you configured pluginBabel({include: /.(?:jsx|tsx)$/,}), and pluginVue2Jsx()?

@chenjiahan
Copy link
Member

yes

@wengjiacheng
Copy link
Author

Have you configured pluginBabel({include: /.(?:jsx|tsx)$/,}), and pluginVue2Jsx()?

When configuring pluginBabel and adding {include: /.(?:jsx|tsx)$/,}), there may be a problem of freezing. Removing {include: /.(?:jsx|tsx)$/,} will solve the problem

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

No branches or pull requests

3 participants