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]: After installing Acro, introduce custom CSS, the program exits directly #3514

Closed
MinGuoGuo opened this issue Sep 19, 2024 · 7 comments
Assignees
Labels
🐞 bug Something isn't working 🎯 upstream

Comments

@MinGuoGuo
Copy link

Version

mac 和window都会出现

Details

rsbuild安装acro后引入自定义css,程序直接退出,webpack和vite都没问题,详情见仓库链接

Reproduce link

https://gitee.com/xiangminya/rsbuild-demo

Reproduce Steps

直接运行项目就会报错,注释掉入口文件的import '@arco-themes/vue-gi-demo/css/arco.css' 就会正常运行

@MinGuoGuo MinGuoGuo added the 🐞 bug Something isn't working label Sep 19, 2024
@9aoy
Copy link
Collaborator

9aoy commented Sep 20, 2024

When I turn off lightningcssLoader, everything works fine. You can temporarily turn off lightningcssLoader through tools.lightningcssLoader: false. We will continue to investigate the cause.

https://rsbuild.dev/guide/basic/css-usage#disabling-lightning-css

@MinGuoGuo
Copy link
Author

When I turn off lightningcssLoader, everything works fine. You can temporarily turn off lightningcssLoader through tools.lightningcssLoader: false. We will continue to investigate the cause.

https://rsbuild.dev/guide/basic/css-usage#disabling-lightning-css

ok. thinks

@MinGuoGuo
Copy link
Author

大佬,还有问题vue单文件里面,一旦添加或者删除style标签,编译也会直接,这个库就能复现

@9aoy
Copy link
Collaborator

9aoy commented Sep 20, 2024

还有问题vue单文件里面,一旦添加或者删除style标签,编译也会直接,这个库就能复现

see web-infra-dev/rspack#7805

@MinGuoGuo
Copy link
Author

还有问题vue单文件里面,一旦添加或者删除style标签,编译也会直接,这个库就能复现

see web-infra-dev/rspack#7805

ok. very very thinks

@chenjiahan chenjiahan changed the title [Bug]: rsbuild安装acro后引入自定义css,程序直接退出 [Bug]: After installing Acro, introduce custom CSS, the program exits directly Sep 20, 2024
@GiveMe-A-Name
Copy link
Member

Reference to: parcel-bundler/lightningcss#827

@chenjiahan
Copy link
Member

This issue should be fixed by parcel-bundler/lightningcss#832, we will bump LightningCSS version when they release a new version.

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

No branches or pull requests

4 participants