1egoman / debundle

:card_file_box: A javascript debundler. Takes a Browserify or Webpack bundle and recreates the initial, pre-bundled source.
https://www.npmjs.com/package/debundle
705 stars 145 forks source link

Error: Locating the module AST failed. #3

Closed humarsantos closed 7 years ago

humarsantos commented 7 years ago

In order to troubleshoot, I need:

Hi 1egoman, I'm trying to reverse a bundle that I've created some time ago and I lost the original files.

The bundle was made with webpack, and the configuration that I used with your instructions was this:

{ "type": "webpack", "entryPoint": 0, "knownPaths": { "0": "./", "2": "./", "3": "./" } }

Command: $ debundle -i pageBikini.bundle.js -o dist/ -c debundle.config.json

humarsantos commented 7 years ago

Give me your e-mail to send you the file, please.

Thanks!

1egoman commented 7 years ago

@humarsantos I'm just seeing this now since I wasn't tagged.

Can you upload the bundle to a site like https://pastebin.com/ ?

Off the top of my head, those knownPaths look wrong. Each should be a different value, maybe try something like this? Also, if I remember correctly, I don't think that known paths need to be specified with a webpack bundle. Maybe try the below?

{
  "type": "webpack",
  "entryPoint": 0,
  "knownPaths": {}
}

Docs on knownPaths

1egoman commented 7 years ago

Closing due to inactivity.

00hello commented 6 years ago

@humarsantos Hey, Facing the same problem. Did you ever get this solved?