I have exactly the same problem, but I already imported the globals.css file into my RootLayout and I still have the same error.
I have the feeling that this only happens when I have a page with few elements. It seems that somehow the UI renders before the styles and they are not applied, I don't know...