-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
ReferenceError: Property 'Proxy' doesn't exist, js engine: hermes #1711
Comments
Issue validatorThe issue is invalid!
|
This is likely coming from one of your dependencies – Hermes doesn't support Proxy and probably one of the libraries utilizes it. If you manage to reproduce this with Reanimated only (without any other dependencies), please update your reproduction example and ping me. |
No brother i dont think its issue with reanimated i told the moti author he said its other libary tho it only comes when i import anything from moti! so its that library big right! it works fine in expo btw!
Dependencey |
Hey, creator of Moti here. It would appear that Framer Motion uses @jakub-gonet is there a polyfill or any alternative that you know of, or should I just hide this feature on Android devices? |
You can try using https://github.com/GoogleChrome/proxy-polyfill – I didn't test that though.
Proxy is only supported in JSC and Hermes support is coming to iOS devices in RN 64 so iOS devices will have this problem as well. You can try checking if Hermes is used by utilizing this function: const isHermes = () => !!global.HermesInternal; and failing in runtime. |
Got it, thanks so much! |
Turns out the solution is
Or, upgrade to RN 0.64.x and Hermès 0.7. Hermès v0.5.2-rc1, which targets RN 0.63, enables |
Huh, wasn't aware that Proxy support landed. Good to know, thanks! |
For future reference: Related release: https://github.com/facebook/hermes/releases/tag/v0.5.2-rc1 |
Description
i was trying to play with moti.. when i import moti the app gives me this error.It only gives me this error when i use moti....i had opened issue there he said its related to reanimted.
Steps To Reproduce
Package versions
"@react-native-community/masked-view": "^0.1.10",
"@react-navigation/native": "^5.9.2",
"@react-navigation/stack": "^5.14.2",
"moti": "^0.4.1",
"react": "16.13.1",
"react-native": "0.63.4",
"react-native-bootsplash": "^3.1.3",
"react-native-gesture-handler": "^1.9.0",
"react-native-reanimated": "2.0.0-rc.0",
"react-native-safe-area-context": "^3.1.9",
"react-native-screens": "^2.17.1"
The text was updated successfully, but these errors were encountered: