1egoman / 1egoman/debundle

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

Offen
#7 5 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
737
Forks
141
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

@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!

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
javascript, webpack
Bereich
tooling
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Klar beschrieben
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.