Open kawpuh opened 11 months ago
I ran into the same issue, and disabling Hermes solved it for me as well. Thanks for sharing this :+1:
When using advanced compilation it is possible to enable Hermes again
It should be possible to define :language-out :es5 for the compiler so that this isn't an issue. @jeisses how do you re-enable hermes for advanced compilation? Manually?
Yes manually, which is not great.
I also switched to setting :language-out :es5
which is more convenient. Wonder if there are any downsides with switching to es5
Sorry I am new to clojurescript builds and haven’t figured out where to put that setting. I put that in build.edn but still get errors, is that the right place?
At least for android, instead of manually switching you could add --extra-params=-PhermesEnabled=false
to your npx react-native run-android
command for debug builds. You can read more about it here. It seems to take precedence over the hermesEnabled property in gradle.properties
I've seen talk of adding :language-out :es5
to build.edn as an alternative, but this doesn't seem to work for me. If anyone has an alternative work around for using hermes with krell debug builds it would be nice to know as react-native-reanimated has problems with JSC.
EDIT:
It seems to be an issue with re-frame-http-fx in particular. If you're not using this library you may be able to get by with just adding :language-out :es5
to build.edn and removing your target folder before recompiling.
In newer version of react native, Hermes is enabled by default which will result in errors like the following:
I suggest making a note of this and adding a link to these instructions in the reagent tutorial.