Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: No Modules Found! #16

Open
asami95 opened this issue Jun 14, 2022 · 4 comments
Open

Error: No Modules Found! #16

asami95 opened this issue Jun 14, 2022 · 4 comments

Comments

@asami95
Copy link

asami95 commented Jun 14, 2022

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

@nhatotanics
Copy link

Same!

@3tch-a-sketch
Copy link

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

@jpstotz
Copy link

jpstotz commented Feb 11, 2023

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).

@spinoza1791
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants