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.@hadilsabbagh18 You probably have the Hermes engine enabled, which can’t handle ES6 JS syntax
There’s a guide here for enabling/disabling it: https://reactnative.dev/docs/hermes
Better link straight to disabling: https://reactnative.dev/docs/hermes#switching-back-to-javascriptcore
Hi @joshmiller just out of curiosity, is there a way to get es6 to work with Hermes? Perhaps with babel?
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.