Fork me on GitHub
#re-frame
<
2015-10-11
>
coyotespike01:10:52

Has anyone run into externs issues when compiling re-com for production?

coyotespike01:10:57

I haven't been able to find any other good Reagent-ified approaches to radio buttons. Works in development, not with advanced compilation.

coyotespike01:10:28

Specifically, I'm using the v-box and the radio buttons. If I remove the radio buttons, it still doesn't work, probably because the radio buttons actually rely on the v-box.

coyotespike02:10:10

Actually, I was able to fix it by including [cljsjs/bootstrap "3.3.5-0"] in my project.clj dependencies, and (:require clsjs.bootstrap) in each namespace in which I used re-com components. 😄

mikethompson11:10:33

@coyotespike: re-com comes with a demo app, which we compile using advanced.

mikethompson11:10:05

via the alias lein run-prod

mikethompson11:10:31

We don't seem to have any of the issues you describe

coyotespike20:10:06

@mikethompson: That makes sense - I assumed you didn't, because I cloned the repo and saw no mention of this. (Correction to my post above - I didn't need to (:require clsjs.bootstrap) in each namespace, just in core.cljs)

coyotespike20:10:20

I'm mixing re-com components and the Bootstrap grid. Perhaps the issues will disappear when I switch over to re-com altogether.

mikethompson21:10:12

Yes, one of the nicest parts of re-com is the layout components. No need for bootstrap grids