Search code examples
reactjsreact-nativereact-native-hermes

RefrenceError: Property 'Proxy' doesn't exist


Everything is fine while I'm in debug mode. But when I Stop Debug Mode I get the following Error:

RefrenceError: Property 'Proxy' doesn't exist, js engine: hermes

enter image description here


Solution

  • As of 2020-01-06, Hermes explicitly does not support Proxy:

    Language Features in Hermes

    Hermes plans to target ECMAScript 2015 (ES6), with some carefully considered exceptions.

    [...]

    Excluded From Support

    Reflection (Reflect and Proxy)

    [...]

    You can follow facebook/hermes #33 for updates on this issue.

    It works in "debug" mode because this mode runs JavaScript in V8 on the host, rather than in Hermes on device.