Fork me on GitHub

I want to use [com.fulcrologic.fulcro-css.localized-dom :as dom] in my fulcro 3 app so I add the lib com.fulcrologic/fulcro-garden-css {:mvn/version "3.0.7"} but I get error:

[:main] Build failure:
------ ERROR -------------------------------------------------------------------
 File: jar:file:/home/johan/.m2/repository/com/fulcrologic/fulcro-garden-css/3.0.7/fulcro-garden-css-3.0.7.jar!/com/fulcrologic/fulcro_css/localized_dom.cljs
Exception: No namespace: com.fulcrologic.fulcro-css.localized-dom found
clojure.core/the-ns (core.clj:4162)
	clojure.core/ns-publics (core.clj:4189)
	clojure.core/ns-publics (core.clj:4189) (macros.clj:33) (macros.clj:31) (macros.clj:81) (macros.clj:51)
What am I missing?


@intemycket two possibilities come to mind: 1. You’re writing a cljc file and didn’t use conditional reader to include both the server and client versions of that ns 2. You put the dep in a section that isn’t seen by the cljs build


what I have is only deps.edn:

{:paths   ["src/main" "resources"]
 :deps    {com.fulcrologic/fulcro            {:mvn/version "3.0.0-alpha-18" :note "Fulcro"}
           com.fulcrologic/fulcro-garden-css {:mvn/version "3.0.7"}
           org.clojure/clojure               {:mvn/version "1.10.1" :note "Clojure"}}

 :aliases {:dev {:extra-paths ["src/dev"]
                 :extra-deps  {org.clojure/clojurescript {:mvn/version "1.10.520"}
                               thheller/shadow-cljs      {:mvn/version "2.8.40"}
                               binaryage/devtools        {:mvn/version "0.9.10"}}}}}
and camera.cljs
    [com.fulcrologic.fulcro.components :as comp :refer [defsc]]
    [com.fulcrologic.fulcro-css.localized-dom :as dom]))

(defsc Camera [this props]
  {:css [[ {:color "red"}]]}

(def ui-camera (comp/factory Camera))


update your version of Fulcro..don’t remember if that older version matches what the latest gcss needs


Ahh, thanks, I use 3.0.10 and the error is gone. 3.0.0-alpha-18 is suggested by the fulcro 3 book btw.