This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-12-27
Channels
- # adventofcode (3)
- # aws (1)
- # beginners (79)
- # boot-dev (1)
- # clara (50)
- # cljs-dev (7)
- # clojure (60)
- # clojure-austin (1)
- # clojure-germany (1)
- # clojure-greece (1)
- # clojure-russia (3)
- # clojure-spec (43)
- # clojure-uk (1)
- # clojurescript (76)
- # data-science (1)
- # datomic (26)
- # docs (2)
- # emacs (7)
- # fulcro (10)
- # hoplon (1)
- # instaparse (1)
- # lumo (3)
- # off-topic (16)
- # om (3)
- # onyx (2)
- # re-frame (3)
- # reagent (24)
- # ring-swagger (10)
- # shadow-cljs (15)
- # spacemacs (1)
- # sql (16)
- # uncomplicate (12)
- # unrepl (47)
I'm having a really similar problem to this question, anyone has any ideas? https://stackoverflow.com/questions/47272447/reagent-adapt-react-class-fails-with-optimizations-advanced
@felipehummel Not sure I have advice, but ar you also using :npm-deps
options in lein
and also using react-helmet
?
lein
: yes. react-helmet
: no
but it's also a react lib/component
Yes, I'm :npm-deps
with lein
In my case it's react-currency-masked-input
lib/component I'm importing through npm-deps
A small difference is that I'm importing it with [react-currency-masked-input :as CurrencyInput]
the component inside react-currency-masked-input
is exported as default
In that stackoverflow I noticed they used aget
to get the “default”. The correct way to access fields via string is goog.object/get
. However, I don’t think that breaks on any cljs versions that I’ve seen (could be wrong).
Yeah, that is my feeling. What caught my attention is that my problem also only occurs with optimizations=advanced
That is a fairly young feature of cljs. I haven’t seen this sort of error before, but haven’t made extensive use of :npm-deps
[org.clojure/clojure "1.9.0-beta3"]
[org.clojure/clojurescript "1.9.946"]
[org.clojure/core.async "0.3.443"]
[reagent "0.7.0"]
[re-frame "0.10.1"]
I haven’t been able to find anything still on it. Did you get more of a stacktrace to follow than just: “Uncaught TypeError: Cannot call a class as a function” There is a chance that may shed some light
Not really. Don't know of any knob that I can turn to make it spill a stacktrace or something else