Newer versions use import.meta.env for development checks, which isn't supported by Hermes (React Native's JavaScript engine for production builds) #3089
-
Bug DescriptionI added latest version of Zustand (5.0.3) in React native with hermes enabled (0.79.1). It is failing to create release builds. ➜ android git:(main) ./gradlew assembleRelease
WARN Watchman WARN Watchman Recrawled this watch 15 times, most recently because: Writing bundle output to: /Users/abhishek/Code/CodeCapsule/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle
[Incubating] Problems report is available at: file:///Users/abhishek/Code/CodeCapsule/android/build/reports/problems/problems-report.html FAILURE: Build failed with an exception.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. For more on this, please refer to https://docs.gradle.org/8.13/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation. BUILD FAILED in 14s Reproduction LinkNA |
Beta Was this translation helpful? Give feedback.
See also #3086. Please try #3087.