Skip to content

vp migrate fails on single-line .oxfmtrc.json with a final newline #2641

Description

@TheAlexLichter

Describe the bug

vp migrate exits with a YAML parse error when .oxfmtrc.json contains valid single-line JSON ending in LF or CRLF.
The identical JSON without a final newline migrates successfully.

Pretty-printing it across multiple lines also succeeds, including with a final newline.

Reproduction

https://github.com/TheAlexLichter/vite-plus-reproduction/tree/migrate-oxfmt-trailing-newline

Steps to reproduce

See README of the branch for more details as necessary.

System Info

Vite+ CLI: 0.3.0
Initial project Vite: 8.2.2
Node: 24.21.0
pnpm: 12.3.4
OS: macOS arm64
No local Vite+ installation before migration

Used Package Manager

pnpm

Logs

Validations

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

Fields

Priority

None yet

Effort

None yet

Target date

None yet

Start date

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions