This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-05-10
Channels
- # announcements (4)
- # babashka (29)
- # beginners (15)
- # calva (4)
- # cljs-dev (1)
- # clojure (28)
- # clojure-dev (13)
- # clojure-europe (3)
- # clojure-india (1)
- # clojure-spec (7)
- # clojure-uk (5)
- # clojurescript (37)
- # component (2)
- # conjure (60)
- # cursive (2)
- # datomic (1)
- # emacs (1)
- # figwheel-main (18)
- # fulcro (38)
- # graalvm (6)
- # graphql (13)
- # helix (14)
- # jobs-discuss (1)
- # joker (5)
- # lein-figwheel (2)
- # nrepl (3)
- # off-topic (15)
- # other-languages (1)
- # other-lisps (1)
- # pedestal (2)
- # reagent (8)
- # reitit (44)
- # shadow-cljs (83)
- # slack-help (8)
- # spacemacs (1)
So I learned on #clojurescript that the above quest was futile, and that that is probably why figwheel hangs; figwheel-main
is simply incompatible with bundled webpack. So instead, I’ve switched to shadow-cljs for building, since this is compatible with the npm project I want to use; haven’t done much yet, but I’ve got my app back up and running, with code reloading, and with the npm lib properly connected. Happy so far!
I use figwheel with webpack all the time. I just haven’t been able to follow your whole structure enough to know your specifics.
And I am fairly sure you can use react-dnd with normal cljs and figwheel. It’s a somewhat popular lib. But if you found something you prefer for now. That’s fine. I’m just commented on the “simply incompatible” part. Because don’t think that’s true.
The traditional bundling approach via foreign-deps cljs compiler option is fine with lein-figwheel and figwheel-main
maybe https://clojurians-log.clojureverse.org/figwheel-main/2020-04-25/1587827227.053000 and https://clojurians-log.clojureverse.org/figwheel-main/2020-05-01/1588371827.127400 is of interest re bundle target
It isn’t even a concern of figwheel at all (the “old” foreign-libs webpack bundle way). The new :bundle option may be a different story.
Yeah. Thanks for links. I was under the impression. This just meant you can’t use the new bundle options yet. But thought you could continue to do it the “traditional way”. Hopefully!
Guess so 🙂
So I’m working on the new :bundle
target now and it should be ready by Wednesday for figwheel-main
. I’m getting lein figwheel
to work first, I’ve got it working already and plan on releasing it tomorrow.
This is a pretty big improvement overall for using npm modules. However its important to remember that it doesn’t hide you from having to deal with webpack. I get some seriously opaque errors and I basically had to retype the webpack.config.js
file and add on piece of config at a time until it worked correctly.