Skip to content

windows <pre> handling results in hydration errors in dev #6410

Closed
@danielroe

Description

@danielroe

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions