You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this is an error when compiler the less file less-loader,although the ~ has been deprecated, But when migrating some old projects to Rsbuild, I don't want to change a lot of existing CSS file.
yeah, thks so mush ! This helped me solve the problem very well; just replace the @animate to @animate/ in rsbuild.config.ts / alias everything is working; but after my testing, this issue only appeared after upgrading to version 1.0, and was completely normal in previous versions.
This error occurs because rspack uses the native parser in the loader, see web-infra-dev/rspack#4945.
In my test, when setting the @animate alias as below, enhance-resolve can handle this case @animate/ => node_modules/animate.less/animate.less, but rspack can't handle this. @SyMind Can you help confirm whether this error in this scenario is as expected?
Version
Details
less-loader,although the
~
has been deprecated, But when migrating some old projects to Rsbuild, I don't want to change a lot of existing CSS file.rsbuildv0.5.9
Reproduce link
https://github.com/priority3/rebuild-less-loader/blob/main/src/App.less#L1
Reproduce Steps
change
@import '~@animate'
to@import '@animate'
everything is working.The text was updated successfully, but these errors were encountered: