Fork me on GitHub
#reagent
<
2016-05-08
>
jupl06:05:18

I'm trying to get reagent set up with react-with-addons for testing. I'm trying the following but I get a JSC_DUPLICATE_EXTERN_INPUT error.

[cljsjs/react-with-addons    "15.0.2-0"]
[reagent                     "0.6.0-alpha2" :exclusions [cljsjs/react]]

juhoteperi07:05:57

@jupl: Reagent depends on cljsjs/react-dom and cljsjs/react-dom-server so you need to exlude those. lein deps tree or boot show -d are you friends when trying to exclude stuff.

jupl07:05:23

So the way I would go about it is for reagent to exclude react-dom and react-dom-server, then on each of those exclude react?

juhoteperi07:05:51

Another alternative would be to use global exclusion to cljsjs/react.

juhoteperi07:05:14

This is the way recommended by cljsjs/react readme currently.

jupl07:05:25

That works. I was following the example in reagent-cookbook so I assume that's out of date now.

gadfly36107:05:58

@jupl: youre right, cookbook is definitely out of date with respect to 0.6.0-* I will update the recipes once a new stable release is out tho