This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-08-22
Channels
- # announcements (3)
- # beginners (22)
- # braveandtrue (6)
- # calva (2)
- # cider (85)
- # cljdoc (1)
- # cljs-dev (21)
- # cljsrn (2)
- # clojure (70)
- # clojure-italy (9)
- # clojure-spec (1)
- # clojure-uk (144)
- # clojure-ukraine (6)
- # clojurescript (109)
- # cursive (59)
- # data-science (15)
- # datomic (40)
- # emacs (8)
- # fulcro (64)
- # funcool (8)
- # graphql (8)
- # hispano (3)
- # hoplon (7)
- # jobs-discuss (29)
- # leiningen (3)
- # luminus (2)
- # off-topic (13)
- # onyx (9)
- # parinfer (49)
- # pedestal (2)
- # portkey (8)
- # re-frame (10)
- # reagent (33)
- # reitit (13)
- # ring (2)
- # ring-swagger (16)
- # shadow-cljs (193)
- # spacemacs (1)
- # sql (19)
- # tools-deps (19)
could anyone help me?
i removed unused soda-ash
dependency and after that i am getting
Uncaught Error: js/ReactDOM is missing
@lepistane It looks like your project is missing a dependency on react DOM
and there are several ways to go about getting that and it also depends on what else you are using
i am using someone else's project i did some refactoring i think it's not setup correctly
I think with no other changes, the react cljsjs dependencies are transitively included via reagent
I’m not sure if you are using lein
, boot
, etc to build. If you are using lein
one thing to take a look at is lein deps :tree
Hi there! I’m trying to import react + other react js modules aside from reagent, with a webpack bundle. It works well with reagent 0.6.0 and React 15 but I didn’t succeed to make it work for Reagent 0.8.1 and React 16. Did someone already had the problem ? I opened an issue on pesterhazy/double-bundle github example : https://github.com/pesterhazy/double-bundle/issues/2
@julien.fleury I don’t see you have any reference to the bundle via :foreign-libs
have you seen the guide now here https://clojurescript.org/guides/webpack
it is related to this double bundle setup, but maybe has a bit more guidance with the :foreign-libs
part
In particular, this part https://clojurescript.org/guides/webpack#using-your-foreign-lib
Yes, I tried that too. From what I understand, if I had a :foreign-lib, then I should remove the “script” in html page, because then the js compiled code is integrated in the clojure compiled code
But unfortunately, couldn’t get it to work too
yes, that is correct - and I prefer the :foreign-libs
approach so it integrates a bit more smoothly
how do you clean ? I basically run a lein clean
I agree, I better like the foreign-libs too, here was my problem with foreign-lib: https://clojurians.slack.com/archives/C03S1L9DN/p1534946547000100
Well, I got back to this solution again, cleaned everything (node_modules, resources/public/js).. And it seems to work (not yet entirely sure)
Maybe a change I did in the meantime...
It really works ! Many many thanks ! =D
@julien.fleury yeah I think it was trying to scan through your node_modules I guess.
Anyone see a problem where TextFields can’t be filled when using the Material UI TextField fix? http://reagent-project.github.io/docs/master/material-ui.html
When I control the components with re-frame
I can edit them just fine, but non-managed components can’t.
I think this is a general reagent db/ratom design question. At first I thought having a single ratom that held all state was a 'great' plan. This works (for some value of 'works') but since any change to any part of it will result in a new value for it, basically everything will re-render (even if most of those are pointless overhead). OTOH, having ratoms all over the place seems like a bad idea as well. So, what do people who know consider best (or at least better) practice here?