Fork me on GitHub
#figwheel-main
<
2020-05-10
>
reefersleep08:05:52

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!

mikerod12:05:57

I use figwheel with webpack all the time. I just haven’t been able to follow your whole structure enough to know your specifics.

mikerod12:05:02

The webpack cljs stuff is independent of figwheel

mikerod12:05:09

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.

dominicm15:05:34

@mikerod the new :bundle type is problematic

dominicm15:05:50

I think it's being worked on

mikerod15:05:49

Oh. This is cutting edge stuff. Is that the tutorial that was being referring to?

mikerod15:05:03

I didn’t realize the guides are already pushing beyond what fig main supports.

mikerod15:05:28

The traditional bundling approach via foreign-deps cljs compiler option is fine with lein-figwheel and figwheel-main

mikerod15:05:51

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.

mikerod15:05:49

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!

dominicm15:05:28

You can, but the guide was updated

😱 4
mikerod16:05:00

Mass confusion for new comers. Hah

reefersleep21:05:40

Guess so 🙂

bhauman22:05:47

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.

bhauman22:05:08

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.

bhauman22:05:15

But the bottom line is you get npm modules and figwheel reloading and a repl for very little config

bananadance 8
❤️ 24