core icon indicating copy to clipboard operation
core copied to clipboard

windows `<pre>` handling results in hydration errors in dev

Open danielroe opened this issue 2 years ago • 0 comments

Vue version

3.2.37

Link to minimal reproduction

https://github.com/danielroe/vue3-pre-window-repro

Steps to reproduce

  1. git clone https://github.com/danielroe/vue3-pre-window-repro on a Windows machine
  2. pnpm i
  3. pnpm dev
  4. visit http://localhost:3000

What is expected?

No hydration errors.

What is actually happening?

You will see a hydration error.

The issue is \r\n on server not matching \n on client.

CleanShot 2022-08-05 at 11 43 34

System Info

No response

Any additional comments?

No response

danielroe avatar Aug 05 '22 10:08 danielroe