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

Aperta Adatta ai principianti
#1,060 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
85/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
javascript, node.js

Direzione di ricerca

Leggi packages/pivotkit-server/src/check/browser.js intorno alla riga 175, la dipendenza peer facoltativa nei metadati del pacchetto server e il passaggio 3 del viewer in docs/reference/records.md. Controlla come viewer/assets.js convalida la versione installata e individua i test esistenti della configurazione di check. Aggiorna l’avviso in modo che usi l’intervallo della dipendenza peer, menzioni --global e rimandi alla documentazione di riferimento; aggiungi un test che verifichi che l’intervallo corrisponda alla dipendenza peer.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
JavaScript
Stelle
1
Fork
1
Merge medio
3h 57m
PR unite (30g)
453

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di eizedev/pivotkit

Tutte le issue di eizedev/pivotkit

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.