Fork me on GitHub
#cljsrn
<
2023-02-15
>
hadils13:02:10

Hi all! I am stumped with this problem: I am using Expo 48 beta, Krell. I am trying to get transpiling (babel) to work but I keep running into these problems:

ERROR  Could not evaluate  [SyntaxError: 16:150:';' expected]
 ERROR  Could not evaluate  [TypeError: Cannot read property 'getLogger' of undefined]
 ERROR  Could not evaluate  [ReferenceError: Property '$jscomp' doesn't exist]
 
I don’t know the proper configuration of babel and build.edn to get this to work. I appreciate any help you can give me.

joshmiller22:02:22

@UGNMGFJG3 You probably have the Hermes engine enabled, which can’t handle ES6 JS syntax

joshmiller22:02:56

There’s a guide here for enabling/disabling it: https://reactnative.dev/docs/hermes

hadils22:02:09

Thank you @U0E1JV8GK

👍 2
hadils19:03:05

Hi @U0E1JV8GK just out of curiosity, is there a way to get es6 to work with Hermes? Perhaps with babel?

joshmiller19:03:38

I would imagine if you can transpile es6 to es5, then Hermes will handle the result, but I haven’t tried it. Others have had luck using Hermes by just setting their CLJS compiler to output es5 instead of es6; I personally just turned off Hermes because the benefits weren’t useful for me in the first place.

hadils19:03:24

Thank you @U0E1JV8GK

👍 2