Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

`on-finished` fails on Node.js 26

Aperta Adatta ai principianti
#1,176 2 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
62/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
javascript, node.js
Ambito
testing

Direzione di ricerca

Parti dalla voce on-finished in lib/lookup.json (righe 328-330, collegate nell'issue) e leggi come citgm decide se saltare o tollerare un modulo che fallisce. Riproduci con un'esecuzione locale di citgm contro on-finished sotto Node.js 26 per confermare il fallimento ReferenceError: require is not defined in ES module scope. Considera completato quando: la voce del lookup gestisce Node.js 26 (ad es. un opportuno marcatore di skip/expected-failure) oppure il fallimento è documentato come problema upstream di jshttp/on-finished, verificato rieseguendo il workflow test-module di citgm o un equivalente locale.

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

Descrizione

Situation

Running citgm on-finished fails in Node.js 26

ReferenceError: require is not defined in ES module scope, you can use import instead
Item Status
npm package https://www.npmjs.com/package/on-finished
npm status not deprecated
last published 2.4.1 Feb 22, 2022
weekly downloads 146,298,987
repo location https://github.com/jshttp/on-finished
repo last update to default branch Dec 2, 2025
repo status stable
repo CI status runs in Node.js <=24
lookup - skip -
lookup maintainer 1 wesleytodd

Repo CI https://github.com/jshttp/on-finished/blob/master/.github/workflows/ci.yml runs in Node.js <=24 on ubuntu

Cloning the repo and running local tests using Ubuntu 26.04.1 LTS and running under Node.js 22, 24 & 26 confirm the compatibility issues for Node.js 26.

Steps to reproduce

Run https://github.com/nodejs/citgm/actions/workflows/test-module.yml

Module to test: on-finished
CITGM repository to checkout: nodejs/citgm
CITGM GitHub ref to checkout: main

Result

Fails in Node.js 26:

Node.js npm macos ubuntu windows
22.23.3 10.9.9 PASS PASS PASS
24.21.0 11.19.0 PASS PASS PASS
26.10.0 11.19.1 FAIL FAIL FAIL

References

https://github.com/nodejs/citgm/blob/4d3d256ce02499dba3ee2b725b2ee6b0d7a51988/lib/lookup.json#L328-L330

cc: @wesleytodd

Lingua principale
JavaScript
Stelle
608
Fork
158
Merge medio
2g 17h
PR unite (30g)
18

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 nodejs/citgm

Tutte le issue di nodejs/citgm

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.