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

`crc32-stream` fails on Node.js 26

Aperta
#1,172 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@MikeMcC399 ci sta già lavorando.

Dal 20/10/2026.

  • #1206 di @MikeMcC399 — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
1-2 giorni
Idoneità per principianti
28/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
javascript, node.js
Ambito
testing, tooling

Direzione di ricerca

This citgm issue reports that the crc32-stream npm module fails on Node.js 26 with require is not defined in ES module scope. Read the crc32-stream block in lib/lookup.json and the test-module workflow linked in the issue. Reproduce with citgm against Node 22/24/26. Any code change may belong in archiverjs/node-crc32-stream rather than citgm; only adjust lookup or skip if that is how similar failures are handled here.

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

Descrizione

Situation

Running citgm crc32-stream passes on Node.js 22 & 24, and fails on 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/crc32-stream
npm status not deprecated
last published 7.0.1 Oct 14, 2024
weekly downloads 56,157,816
repo location https://github.com/archiverjs/node-crc32-stream
repo last update to default branch Oct 14, 2024
repo status quiet
repo CI status runs in Node.js 18 & 20
lookup - skip -
lookup maintainer 1 ctalkington

Repo CI https://github.com/archiverjs/node-crc32-stream/blob/master/.github/workflows/nodejs.yml runs only in EOL Node.js versions 18 & 20.

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: crc32-stream
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#L116-L119

cc: @ctalkington

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.