Steps to Reproduce
pnpm create next-app --example with-goober with-goober-app
cd with-goober-app
pnpm run dev
- Open page. Notice
h1 is black.
- Refresh. Notice
h1 is orange.
- Change one of the strings in
page.tsx. Notice h1 is black again.
- Refresh. Notice
h1 is orange again.
Expected: The h1 should always be orange (tomato).
Actual: The h1 is black on first load after dev server startup and after HMR.
When the h1 is black, it's because all of the CSS is missing. You can even console.log({css}) and see { css: '' } when the CSS disappears, and { css: '.go…' } when it returns.
Steps to Reproduce
pnpm create next-app --example with-goober with-goober-appcd with-goober-apppnpm run devh1is black.h1is orange.page.tsx. Noticeh1is black again.h1is orange again.Expected: The
h1should always be orange (tomato).Actual: The
h1is black on first load after dev server startup and after HMR.When the
h1is black, it's because all of the CSS is missing. You can evenconsole.log({css})and see{ css: '' }when the CSS disappears, and{ css: '.go…' }when it returns.