T
TanStack3w ago
unwilling-turquoise

SCSS in Tanstack, Hydration Issue & FOUC

is there a recommended way to use SCSS files in tanstack? if I import the SCSS file barebones like import "../styles.scss", I see FOUC (flash of unstyled content), but if I link it as a stylesheet by using import appCss from "../styles.scss" I get hydration errors.
2 Replies
rare-sapphire
rare-sapphire3w ago
Try import appCss from "../styles.scss?url" And add it to the head in your root route
conservation-jade
conservation-jade3w ago
^ that solution unfortunately doesn't work for me. Here's an open issue to hopefully track this: https://github.com/TanStack/router/issues/5812
GitHub
Build Hash For css not match when build using docker · Issue #581...
Which project does this relate to? Router Describe the bug Issue When building a TanStack Start project normally (local build), the asset hashes are consistent and everything works as expected. How...

Did you find this page helpful?