Webpack compatibility issue since v9+

Aperta
#336 5 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
typescript, webpack
Ambito
build-system

Direzione di ricerca

Inizia dagli import che falliscono in node_modules/node-ssh/lib/esm/index.mjs e riproduci la build webpack di build/test.js. Confronta i contenuti dei pacchetti e il comportamento dei moduli tra node-ssh 8.0.0 e 11.1.0, inclusa la configurazione webpack se disponibile. Il lavoro è completo quando è stata identificata la modifica che causa gli errori di export denominati e sono state definite indicazioni sulla compatibilità o una correzione verificata.

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

Descrizione

unconfirmed bug

I've been able to successfully bundle node-ssh with webpack, up to version 8.0.0 of node-ssh. However, since upgrading to the latest version of node-ssh (11.1.0), something appears to have broken compatibility, and the following error has started to appear during the web-packing.

Appreciate that the issue may not be with node-ssh itself, but that the resolution may involve having to adjust my web-pack configuration. But any detail about what change since v9+ may be causing this would be greatly appreciated. :)

``
ERROR in ./node_modules/node-ssh/lib/esm/index.mjs 107:22-36
Can't import the named export 'AssertionError' from non EcmaScript module (only default export is available)
@ ./build/test.js

ERROR in ./node_modules/node-ssh/lib/esm/index.mjs 120:34-48
Can't import the named export 'AssertionError' from non EcmaScript module (only default export is available)
@ ./build/test.js

ERROR in ./node_modules/node-ssh/lib/esm/index.mjs 402:26-38
Can't import the named export 'PromiseQueue' from non EcmaScript module (only default export is available)
@ ./build/test.js

ERROR in ./node_modules/node-ssh/lib/esm/index.mjs 451:34-46
Can't import the named export 'PromiseQueue' from non EcmaScript module (only default export is available)
@ ./build/test.js

ERROR in ./node_modules/node-ssh/lib/esm/index.mjs 463:34-46
Can't import the named export 'PromiseQueue' from non EcmaScript module (only default export is available)
@ ./build/test.js

ERROR in ./node_modules/node-ssh/lib/esm/index.mjs 547:34-46
Can't import the named export 'PromiseQueue' from non EcmaScript module (only default export is available)
@ ./build/test.js

ERROR in ./node_modules/node-ssh/lib/esm/index.mjs 559:34-46
Can't import the named export 'PromiseQueue' from non EcmaScript module (only default export is available)
@ ./build/test.js

``

Lingua principale
TypeScript
Stelle
1k
Fork
94
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 steelbrain/node-ssh

Tutte le issue di steelbrain/node-ssh

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.