James-Thibaudeau / bulma-cljs

Reagent component library for Bulma
8 stars 1 forks source link

Trouble dropping into a reagent app #1

Open Vaguery opened 5 years ago

Vaguery commented 5 years ago

I'm having trouble dropping this into an existing reagent app. I've added the project as a clojars dependency, and manually placed bulma.css in my project's /resources/public/css/ path, but when I include (require ... [bulma-cljs.core :as bulma])in my app's cljs, the resulting app doesn't compile.

Message being: ReferenceError: Can't find variable: bulma_cljs

This seems to be coming from this call, though to be honest I'm not entirely sure how the clojar's file is getting rendered in my app....

In any case, I'm pretty sure I can clone the repo and manually drop the core in locally, but it would be more convenient if (1) I understood the problem on my end and how I might avoid it, or (2) could just download-and-go.

Thanks!

James-Thibaudeau commented 5 years ago

@Vaguery If you are using lein, then you should only have to put [bulma-cljs "0.1.4"] into you dependencies in your project.clj. It should fetch the jar from clojars and include it in your build. You should then have access to it through your require. If you are using boot or deps, I am not certain how to require dependencies in those types of project.

I apologize for not seeing this sooner. I haven't had much time to work on this the past few months. I appreciate that you took the time to try it out and provide feedback, as this is my first attempt at creating and publishing a library for public use.