1egoman / 1egoman/debundle

The root level IIFE didn't have an array for it's first parameter, aborting...

Aperta
#7 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
737
Fork
141
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

@1egoman

In order to troubleshoot, I need:

A bundle that doesn't work, preferably as minimal as possible. Upload it to pastebin.com:

Link: https://pastebin.com/eg22rLqE

Any commands you ran prior to debundling:

```
mkdir debundle-test1 && cd debundle-test1
npm init -y
npm i --save-dev debundle
```

Your configuration that you passed with the `-c` argument when debundling.

```
{
"type": "webpack",
"entryPoint": 1,
"knownPaths": {}
}
```

The **EXACT** command you ran to debundle.

`node ./node_modules/debundle/src/index.js -i ext-bundle.js -o ext-dist/ -c debundle.config.json`

Tell me what the issue is:

```
Error: The root level IIFE didn't have an array for it's first parameter, aborting...
at webpackDecoder (~\debundle-test1\node_modules\debundle\src\decoders\webpack.js
:19:11)
at Object. (~\debundle-test1\node_modules\debundle\src\index.js:104:13
)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:389:7)
at startup (bootstrap_node.js:149:9)
```

If you omit any of these parts, I can't help you!

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

The error occurs in src/decoders/webpack.js at line 19. Examine the webpack decoder's handling of the root IIFE structure. The bundle causing the issue is at pastebin.com/eg22rLqE. Start by understanding the bundle format and the decoder's expectations for the first parameter. Run the failing command with the provided configuration to reproduce the error.

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

Valutazione

Stack tecnologico
javascript, webpack
Ambito
tooling
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Specificata chiaramente
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.