reactjs - 引用错误 : Property 'Proxy' doesn't exist

标签 reactjs react-native react-native-hermes

在 Debug模式下一切正常。但是当我停止 Debug模式时,出现以下错误:

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

enter image description here

最佳答案

截至2020-01-06,爱马仕明确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)

[...]

可以关注facebook/hermes #33有关此问题的更新。

它在“调试”模式下工作,因为这种模式在主机上的 V8 中运行 JavaScript,而不是在设备上的 Hermes 中。

关于reactjs - 引用错误 : Property 'Proxy' doesn't exist,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59467219/

相关文章:

reactjs - 不变违规: requireNativeComponent: "FastImageView" was not found in the UIManager in react native

react-native - Flipper:Flipper Hermes 调试器不显示

android - 正在获取 "java.lang.UnsatisfiedLinkError: couldn' t 找到 DSO 以加载 : libhermes. 所以“错误

react-native - 使用 Hermes 的 React native 应用程序崩溃并显示 "SIGSEGV: Segmentation violation (invalid memory reference) "

reactjs - 如何在 React 组件中使用 @types/redux-form 定义的类型与 Field 和 FieldArray?

javascript - Portal/Portlet 之类的带有 Angularjs/React 的 Web 应用程序

javascript - npx react-native init 错误在 appdata 文件夹中不包含 package.json 文件

javascript - 尝试使用自定义内容创建 React 抽屉导航

react-native - 如何在 React Native 6 中调用我们自己的构建 withNavigation

reactjs - 类型 'Element[]' 缺少类型 'Element' : type, props、key 中的以下属性