This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-02-15
Channels
- # announcements (5)
- # babashka (56)
- # beginners (24)
- # biff (15)
- # calva (7)
- # clj-kondo (12)
- # cljsrn (8)
- # clojure (68)
- # clojure-denmark (1)
- # clojure-europe (55)
- # clojure-norway (4)
- # clojure-spec (9)
- # clojure-uk (2)
- # clojurescript (8)
- # cursive (11)
- # data-science (7)
- # datahike (1)
- # datomic (66)
- # emacs (12)
- # etaoin (3)
- # fulcro (10)
- # graphql (3)
- # hyperfiddle (97)
- # jobs (1)
- # kaocha (8)
- # lsp (3)
- # malli (15)
- # meander (1)
- # off-topic (3)
- # overtone (4)
- # polylith (7)
- # rdf (25)
- # re-frame (4)
- # reagent (14)
- # remote-jobs (1)
- # shadow-cljs (126)
- # sql (30)
- # vscode (3)
- # xtdb (8)
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.@UGNMGFJG3 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 @U0E1JV8GK 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.