Update `minimatch` to Latest and Update Import

Aperta
#809 1 commento 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
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
node.js, typescript, webpack
Ambito
build-system

Direzione di ricerca

Start by grepping the src/ directory for minimatch to find its import and every call site; the issue names no file, so the import is the first thing to locate. Change the import to destructure from the new v9 export shape (rather than relying on defaults), bump the minimatch dependency in package.json, and confirm nothing else uses the old call form. Run the existing test suite plus a build to verify webpack starts with the override, which is what done looks like here.

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

Descrizione

bug

Current behavior

✏️ An TypeError is happening when running npm run start with an override of webpack in version 5.79.0 and minimatch in version 9.0.0.

minimatch has updated their code from not using defaults anymore and importing minimatch is now done through destructuring from an exported object.

Expected behavior

Webpack to run successfully when running npm run start.

Steps to reproduce the issue

Use latest webpack version 5.79.0 and latest minimatch in version 9.0.0 in an override property in package.json.

Issue reproduction repository

Environment

  • fork-ts-checker-webpack-plugin: 8.0.0
  • typescript: 4.5.5
  • eslint: 8.8.0
  • webpack: 5.67.0
  • os: Windows 10
Lingua principale
TypeScript
Stelle
2k
Fork
257
Merge medio
1g 23h
PR unite (30g)
7

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

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 TypeStrong/fork-ts-checker-webpack-plugin

Tutte le issue di TypeStrong/fork-ts-checker-webpack-plugin

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.