1egoman / 1egoman/debundle

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

Đang mở
#7 5 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
737
Fork
141
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
javascript, webpack
Lĩnh vực
tooling
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.