solid-start icon indicating copy to clipboard operation
solid-start copied to clipboard

[Bug?]: [examples/with-unocss] Hydration mismatch caused by Tailwind reset import during SSR

Open KunMoe opened this issue 1 year ago • 2 comments

Duplicates

  • [x] I have searched the existing issues

Latest version

  • [x] I have tested the latest version

Current behavior 😯

When using the official with-unocss example, hydration mismatches occur due to how the Tailwind reset CSS is imported.

Expected behavior 🤔

No response

Steps to reproduce 🕹

Steps:

  1. Clone this repository and navigate to the examples/with-unocss folder
cd examples/with-unocss
pnpm i
pnpm dev
  1. Notice hydration mismatch and layout/style shift on initial load

Image

Context 🔦

No response

Your environment 🌎

Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 10 Pro
  Available memory (MB): 16291
  Available CPU cores: 16
Binaries:
  Node: 22.14.0
  npm: 10.9.2
  Yarn: N/A
  pnpm: 10.12.1
Relevant Packages:
  @solidjs/router: 0.15.0
  @solidjs/start: 1.1.0
  @unocss/reset: 0.65.1
  solid-js: 1.9.5
  unocss: 0.65.1
  vinxi: 0.5.7

KunMoe avatar Sep 24 '25 20:09 KunMoe

Can you check if this is fixed with this pr? https://github.com/solidjs/templates/pull/220/files

brenelz avatar Oct 24 '25 02:10 brenelz

Can you check if this is fixed with this pr? https://github.com/solidjs/templates/pull/220/files

Oh sorry, I forgot to close this issue.

KunMoe avatar Oct 24 '25 12:10 KunMoe