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

RN 0.60 Hermes: Property 'Proxy' doesn't exist. #25740

Closed
arivanandan opened this issue Jul 19, 2019 · 7 comments
Closed

RN 0.60 Hermes: Property 'Proxy' doesn't exist. #25740

arivanandan opened this issue Jul 19, 2019 · 7 comments
Labels
Bug Platform: Android Android applications. Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@arivanandan
Copy link

RN: v0.60.4

Been upgrading this project from 0.53. Please let me know what could be causing this so I could follow up with code snippets of relevant files.

It goes away when I turn off hermes.

I also see this when the app is loading:
couldn't find DSO to load: libjscexecutor.so

Screenshot_1563537223

@arivanandan arivanandan changed the title RN 0.60 Hermes: Property 'Proxy' doesn't exist. RN 0.60 Android Hermes: Property 'Proxy' doesn't exist. Jul 19, 2019
@react-native-bot react-native-bot added the Platform: Android Android applications. label Jul 19, 2019
@react-native-bot
Copy link
Collaborator

Thanks for submitting your issue. Can you take another look at your description and make sure the issue template has been filled in its entirety?

👉 Click here if you want to take another look at the Bug Report issue template.

@react-native-bot react-native-bot added Ran Commands One of our bots successfully processed a command. Resolution: Needs More Information labels Jul 19, 2019
@arivanandan arivanandan changed the title RN 0.60 Android Hermes: Property 'Proxy' doesn't exist. RN 0.60 Hermes: Property 'Proxy' doesn't exist. Jul 19, 2019
@ecreeth
Copy link
Contributor

ecreeth commented Jul 19, 2019

@arivanandan Please, make sure that the update of your project has been correct in the following link

@guhungry
Copy link
Contributor

I think it's because Hermes engine doesn't support Proxy facebook/hermes#28

@arivanandan
Copy link
Author

arivanandan commented Jul 21, 2019

I have been using the rn-upgrade-helper and it's been very helpful!

So, if Proxy isn't present can I add a polyfill or should I just leave hermes off?

@guhungry
Copy link
Contributor

I would suggest turn hermes off.
Proxy is low level API which can't be polyfilled completely and efficiently. But you can try https://github.com/GoogleChrome/proxy-polyfill

@arivanandan
Copy link
Author

I tried it and it doesn't seem to work. Seems like we have to wait for hermes to support it (if at all).

@jp928
Copy link

jp928 commented Oct 20, 2020

@arivanandan

Add

project.ext.react = [
        root           : "../../../",
        entryFile      : "index.js",
        bundleAssetName: "index.bundle",
        enableHermes   : true,
        bundleInAlpha  : true,
        bundleInBeta   : true,
        hermesFlagsDebug:['-Xes6-proxy'],
        hermesFlagsRelease:['-Xes6-proxy']
]

in build.gradle

here is an example:
https://github.com/wix/react-native-notifications/blob/master/example/android/myapplication/build.gradle

@facebook facebook locked as resolved and limited conversation to collaborators Oct 7, 2021
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Oct 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Platform: Android Android applications. Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

5 participants