Important global.css TailwindCSS might be wrong
My CSS does not load instantly. You can see on the page the UI of the website without css for maybe 300 ms. I am placing the import './globals.css'; in the first line of router.tsx. Where do you put it? I tried everything but nothing works.
3 Replies
adverse-sapphire•9mo ago
sounds like the same problem as https://github.com/TanStack/router/issues/3023
GitHub
How to use CSS Modules with TanStack Start? · Issue #3023 · TanStac...
Which project does this relate to? Start Describe the bug I'm struggling to make CSS Modules work properly. Currently, the styles are being loaded only on the client, causing a flash of unstyle...
adverse-sapphire•9mo ago
i have this issue too
idk if this is relevant, but when i build and start the project, the css isn't linked in the html at all, even though it gets built and included in the vite manifest. wondering if you have the same issue since they sound related
eastern-cyanOP•9mo ago
This is the same as mine.