This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-04-25
Channels
- # architecture (4)
- # bangalore-clj (3)
- # beginners (11)
- # chestnut (1)
- # cider (24)
- # cljs-dev (14)
- # clojure (97)
- # clojure-finland (1)
- # clojure-gamedev (19)
- # clojure-italy (11)
- # clojure-nl (31)
- # clojure-norway (1)
- # clojure-uk (52)
- # clojurescript (71)
- # core-async (4)
- # cursive (60)
- # datascript (8)
- # datomic (115)
- # emacs (29)
- # figwheel (11)
- # fulcro (3)
- # garden (1)
- # hoplon (1)
- # lein-figwheel (1)
- # leiningen (7)
- # luminus (13)
- # mount (1)
- # off-topic (51)
- # onyx (31)
- # pedestal (2)
- # portkey (1)
- # re-frame (22)
- # reagent (22)
- # reitit (6)
- # remote-jobs (1)
- # schema (1)
- # shadow-cljs (73)
- # specter (2)
- # sql (1)
- # unrepl (3)
- # vim (11)
- # yada (4)
I’m just upgrading to 0.8.0
and when I run my unit tests with doo
I now get
Error while loading file: "target/test.js"
ReferenceError: "Set" is not defined
At line 153
ERROR: doo was not loaded from the compiled script.
With 0.7.0
I get a successful test run.
Is this issue known to anyone?
@peterwestmacott What js env are you using with Doo? Phantom?
Could be new React no longer works with Phantom
nashorn
Set
could refer to React using ES6 Sets
oh, so could be latest reagent uses latest react which uses JS features not supported by my runtime?
sounds super-plausible
The JS line-number it gives me is deep in the minified version of React
Quick search says that Nashorn ES6 support requires Java 9
yep - I’m just coming to that conclusion - but thanks for confirming
looks like I need moar Java
what do you guys think of this problem? https://clojureverse.org/t/theming-a-reagent-app/2026
Its not specific to Reagent. Theming is always a challenge. One thing that can ease the pain is to use the new React Context
API and another solution is explore tools like css modules
or styled-components
/ glamor
- ideally you would combine both of these.
which uses context under the hood i'm pretty sure. it's just kind of gross to use with reagent
emotion is?