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

Chrome debugging fails due to synchronous native method call #20

Open
MichaelDanielTom opened this issue Sep 30, 2020 · 3 comments
Open

Comments

@MichaelDanielTom
Copy link

Debugging in Chrome fails with "Calling synchronous methods on native module is not supported in Chrome"

It's likely related to the api change in this commit. Is there any way to use this current version with the Chrome debugger? If not, offering an async api as well might be helpful.

@zhigang1992
Copy link
Owner

for now, the async version would be to just stay on 1.*.

I'm not yet available to make the change, might be able to get to it later.

A PR is welcome as well. 😀

@zhigang1992
Copy link
Owner

Or maybe we can by pass it and return original value when

__REMOTEDEV__

Is set to true

@mversteeg3
Copy link

Hey! I'm having this issue as well and wanted to attempt a PR using the method as a Promise as described here, but had issues getting the example to run.

Any gotchas to be aware of when trying to run the project?

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

3 participants