Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

fix(migrate): detect Yarn PnP config even when env overrides nodeLinker

Abierto
#2,001 0 comentarios 0 reacciones 1 asignado Ver en GitHub

@fengmk2 ya está trabajando en esto.

Desde el 1/7/2026.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

bug

vp migrate currently treats YARN_NODE_LINKER=node-modules as enough to skip Yarn PnP handling. However, if the repository itself has .yarnrc.yml with nodeLinker: pnp, migration can complete successfully while leaving unsupported PnP config in the project. Future installs without that environment override will return to PnP mode.

Expected behavior:

  • If .yarnrc.yml explicitly sets nodeLinker: pnp, migration should not silently pass just because YARN_NODE_LINKER=node-modules is set.
  • Preferably, migration should stop and ask the user to change the project config manually, or apply the existing node-modules conversion flow if that is the intended behavior.
  • YARN_NODE_LINKER=pnp should still hard-block migration as today.

Suggested test:

Create a Yarn Berry fixture with:

# .yarnrc.yml
nodeLinker: pnp

Run migrate with:

YARN_NODE_LINKER=node-modules vp migrate --no-interactive

Assert that migration does not report the project as successfully migrated while leaving nodeLinker: pnp unchanged.

Lenguaje dominante
Rust
Estrellas
5.8k
Forks
263
Merge medio
1 d 3 h
PR fusionados (30 d)
147

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de voidzero-dev/vite-plus

Todos los issues de voidzero-dev/vite-plus

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.