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

Could not find export 'JNI_OK' in module frida-java-bridge/lib/result.js #287

Open
P-Sc opened this issue Apr 22, 2023 · 0 comments
Open

Comments

@P-Sc
Copy link
Contributor

P-Sc commented Apr 22, 2023

This might be a non-issue because I only encountered this error when importing this module into my frida typescript project. So it might as well be closed, I am just documenting it for others to see.

I encountered the error
SyntaxError: Could not find export 'JNI_OK' in module '/agent/frida-java-bridge/lib/result.js'
when importing the module in a typescript file with
import { getApi, withRunnableArtThread, ArtStackVisitor } from './frida-java-bridge/lib/android.js';.

It seems that for some reason Node doesn't like this line:

When I removed ":0" it worked though:

module.exports = {
  checkJniResult,
  JNI_OK
};
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

1 participant