figwheel-main

figwheel-main http://figwheel.org
reefersleep 2020-05-10T08:55:52.175800Z

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!

2020-05-10T12:00:57.176700Z

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

2020-05-10T12:03:02.177100Z

The webpack cljs stuff is independent of figwheel

2020-05-10T12:04:09.179Z

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.

dominicm 2020-05-10T15:05:34.180Z

@mikerod the new :bundle type is problematic

dominicm 2020-05-10T15:05:50.180300Z

I think it's being worked on

2020-05-10T15:08:49.181100Z

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

2020-05-10T15:09:03.181600Z

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

2020-05-10T15:09:28.182600Z

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

2020-05-10T15:09:51.183700Z

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.

2020-05-10T15:10:49.184900Z

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!

dominicm 2020-05-10T15:35:28.185400Z

You can, but the guide was updated

😱 1
2020-05-10T16:17:00.185800Z

Mass confusion for new comers. Hah

reefersleep 2020-05-10T21:35:40.186Z

Guess so 🙂

bhauman 2020-05-10T22:23:47.189600Z

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.

bhauman 2020-05-10T22:27:08.192700Z

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.

bhauman 2020-05-10T22:28:15.193800Z

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

2
❤️ 6