rsbuild icon indicating copy to clipboard operation
rsbuild copied to clipboard

[Bug]: After installing Acro, introduce custom CSS, the program exits directly

Open MinGuoGuo opened this issue 1 year ago • 5 comments

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 avatar Sep 19 '24 14:09 MinGuoGuo

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

9aoy avatar Sep 20 '24 04:09 9aoy

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 avatar Sep 20 '24 05:09 MinGuoGuo

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

MinGuoGuo avatar Sep 20 '24 06:09 MinGuoGuo

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

see https://github.com/web-infra-dev/rspack/issues/7805

9aoy avatar Sep 20 '24 06:09 9aoy

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

see web-infra-dev/rspack#7805

ok. very very thinks

MinGuoGuo avatar Sep 20 '24 06:09 MinGuoGuo

Reference to: https://github.com/parcel-bundler/lightningcss/issues/827

GiveMe-A-Name avatar Oct 08 '24 11:10 GiveMe-A-Name

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

chenjiahan avatar Oct 16 '24 03:10 chenjiahan