Subscribe on changes!

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

avatar
Aug 5th 2022

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