-
Notifications
You must be signed in to change notification settings - Fork 6
[BUG] Cannot read properties of undefined (reading 'insertAfter') #16
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
Comments
Hi @BleedingDev, it would be great if you could provide the repo that can re-produce this problem |
Sure thing, I'll try to do minimal reproduction example, sorry for not adding it immediately. In the end I got it working, but without the plugin. Here's the app inside Nx Monorepo. I had to remove this plugin from RsBuild config, so it's not there as of now. |
Hi @BleedingDev, I would be able to reproduce this with a minimal reproduction. It seems like the @layer base {
* {
@apply rounded-none;
}
} into @layer base {
@apply rounded-none;
} which makes Tailwind CSS not working. You may temporarily disable We would make more investigation on this issue(maybe disable Thank you for your reporting. |
I encountered the same error. Strangely, in my monorepo, two apps have almost the same configuration, but only one of the apps will throw such an error. Luckily enough setting tools.lightningcssLoader to false works. |
hi @colinaaa, i notice that rsbuild work perfectly without this plugin even not explicitly set tools.lightningcssLoader to false. what's the difference between these use cases? my repro demo is here: |
@rogerleung0411 The same reason as I mentioned before:
BTW, you could check the Loader Analysis of Rsdoctor for yourself: ![]() |
Hi,
I tried to use this plugin and it fails with following error:
Anything I should do differently? :) I am trying to consume UI Library (Shadcn) and also use styles in the app (I have Nx Monorepo, which I can share).
The text was updated successfully, but these errors were encountered: