react-native-decompiler icon indicating copy to clipboard operation
react-native-decompiler copied to clipboard

Error: No Modules Found!

Open asami95 opened this issue 2 years ago • 4 comments

Hi, First, thank you so much for your efforts, I really appreciate your awesome work!

I tried to run the mentioned command npx react-native-decompiler -i ./index.android.bundle -o ./output in the document to decompile an output of the android APK file /assets/index.android.bundle but I got this error:

[!] No modules were found!
[!] Possible reasons:
[!] - The React Native app is unbundled. If it is, export the "js-modules" folder from the app and provide it as the --js-modules argument
[!] - The bundle is a binary/encrypted file (ex. Facebook, Instagram). These files are not supported
[!] - The provided Webpack bundle input is not or does not contain the entrypoint bundle
[!] - The file provided is not a React Native or Webpack bundle.

Am I running the wrong command?

Thanks in advance

asami95 avatar Jun 14 '22 18:06 asami95

Same!

nhatotanics avatar Jun 20 '22 06:06 nhatotanics

If you open the source file is it in a binary format? If it is this tool will not work. The data has been encoded as byte code for hermes which is a custom js engine. I got round this by getting an ios verision of the app which did not have the encoding

3tch-a-sketch avatar Jun 25 '22 14:06 3tch-a-sketch

If the code is in binary format it may be "Hermes byte code" for which other decompilers are available: https://github.com/cyfinoid/hbctool (doesn't output JavaScript but at least something readable).

jpstotz avatar Feb 11 '23 12:02 jpstotz

Same issue for me. [!] No modules were found! [!] Possible reasons: [!] - The React Native app is unbundled. If it is, export the "js-modules" folder from the app and provide it as the --js-modules argument [!] - The bundle is a Hermes/binary file (ex. Facebook, Instagram). These files are not supported (Its not binary, it is readable) [!] - The provided Webpack bundle input is not or does not contain the entrypoint bundle (not a webpack) [!] - The provided Webpack bundle was built from V5, which is not supported (no webpack, just .js files android app) [!] - The file provided is not a React Native or Webpack bundle.(pure React Native .js files and one .tsx file)

spinoza1791 avatar Jan 02 '24 20:01 spinoza1791