A methodical journey through debugging a CSS-in-JS race condition when the error message tells you nothing


TL;DR: If you're getting Invalid empty selector errors from StyleX with Vite, and you're using imported constants as computed property keys like [breakpoints.tablet]: '1rem', that's the problem. Replace them with inline strings like "@media...