server: check-config names the pivotkit-element version and --global for the viewer page

Abierto Apto para principiantes
#1,060 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
85/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
javascript, node.js

Línea de trabajo

Lee packages/pivotkit-server/src/check/browser.js alrededor de la línea 175, la dependencia peer opcional en los metadatos del paquete del servidor y el paso 3 del visor en docs/reference/records.md. Comprueba cómo viewer/assets.js valida la versión instalada y busca las pruebas existentes de configuración de check. Actualiza la advertencia para que use el rango de la dependencia peer, mencione --global y enlace la referencia; añade una prueba que verifique que el rango coincide con la dependencia peer.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

area:server enhancement

When the viewer page is on and pivotkit-element is missing, check-config warns:

the viewer page needs pivotkit-element installed next to pivotkit-server (npm install pivotkit-element): until then it answers 503

(packages/pivotkit-server/src/check/browser.js:175)

The command it names is not the one the docs give (docs/reference/records.md, viewer step 3: npm install pivotkit-element@<version>, with --global for a global install):

  • It has no version. pivotkit-element must be in the range pivotkit-server names as an optional peer dependency. A plain npm install pivotkit-element installs the newest release, which can be outside that range on an older server. The page then refuses it (viewer/assets.js:54).
  • It does not say --global. pivotkit-server is often installed globally. A local install in the current folder is then not "next to pivotkit-server", and the warning stays.

Proposal: the warning names the range from the peer dependency (npm install pivotkit-element@"<range>"), adds "with --global when pivotkit-server is installed globally", and links the viewer section of the records reference. A test checks the text against the peer dependency, so the range cannot drift.

Lenguaje dominante
JavaScript
Estrellas
1
Forks
1
Merge medio
3 h 57 min
PR fusionados (30 d)
453

Preparar el entorno

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 eizedev/pivotkit

Todos los issues de eizedev/pivotkit

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.