This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-04-30
Channels
- # aleph (12)
- # beginners (23)
- # boot (12)
- # cider (40)
- # cljs-dev (8)
- # cljsrn (20)
- # clojars (1)
- # clojure (122)
- # clojure-canada (2)
- # clojure-dev (21)
- # clojure-gamedev (2)
- # clojure-italy (3)
- # clojure-nl (12)
- # clojure-norway (1)
- # clojure-sanfrancisco (3)
- # clojure-spec (59)
- # clojure-uk (114)
- # clojurescript (50)
- # clojurex (1)
- # cursive (2)
- # datascript (2)
- # datomic (26)
- # emacs (5)
- # fulcro (19)
- # garden (1)
- # hoplon (54)
- # leiningen (42)
- # luminus (14)
- # off-topic (24)
- # om (5)
- # onyx (7)
- # re-frame (2)
- # reagent (31)
- # reitit (3)
- # ring-swagger (39)
- # shadow-cljs (8)
- # sql (3)
- # tools-deps (13)
getting goog.require could not find: create_react_class
when compiling with :whitespace
optimizations
a goog.require is usually a dependency loading order issue. make sure you are actually (:require [reagent.core ...]
at the right place in your app. externs are worth a check, are you using cljsjs to hold a dependency on react, etc? as soon as you use anything but :optimizations :none
you run into some oddities
I'm not using any cljsjs react libraries. I suppose reagent is already including them...
try to inspect which transitive dependencies are actually pulled in
clj -Stree
I think
looks like it's there cljsjs/create-react-class 15.6.2-0
have you tried simple optimizations instead?
whitespace is sometimes wonky...
@dimovich in your repo, when I try clj -A:run
it seems to work?
$ clj -A:run
Serving HTTP on localhost port 5000
@dimovich works for me with :optimizations :simple
also
are you on latest clj
?
still got some JS erros after advanced optimizations, but those are due to renaming... so it's another thing
@pesterhazy @lwhorton thanks for helping!
sure thing!