Fork me on GitHub
#re-frame
<
2021-08-15
>
javi11:08:42

anyone tried freerange fork of re-frame? I am trying to setup an example and can't require reframe-core.

{:paths
 ["src/dev"
  "src/main"
  "src/test"]
 :deps
 {thheller/shadow-cljs {:mvn/version "2.14.3"}
  reagent              {:mvn/version "1.1.0"}
  #_#_re-frame {:mvn/version "RELEASE"}
  re-frame/re-frame    {:git/url ""
                        :sha     "8cf68c30722a4c6f8f948a134c900d7a656ecad4"}}}
running
...{:app {:target           :browser
        :modules          {:main {:entries [freerange-example.core]}}

        :output-dir       "public/js"
        :asset-path       "/js"
        :compiler-options {:optimizations  :simple
                           :output-wrapper false}
        :devtools         {:http-root       "public"
                           :http-port       9711
                           :hud             true
                           :ignore-warnings true
        }}} 
...
(ns freerange-example.core
  (:require
    [reagent.core :as r]
    [re-frame.core :as rf] ;; <-- requiring it as regular re-frame
    [clojure.string :as str]))
[:app] Build failure: The required namespace "re-frame.core" is not available, it was required by "freerange_example/core.cljs".

p-himik13:08:17

Compute the classpath using clj -Spath and see what's in there. clj -Spath | tr : '\n' | grep -v /.m2/ should give the most interesting parts.

p-himik13:08:50

If the relevant directory is in there (should be something with .gitlibs ), go there and see what it contains. Double check that the path has that hash. If it does have re_frame/core.cljc, then I have no idea. If it does not have the file, remove the SHA directory and try again.

javi15:08:15

thanks, upgrading my mac os at the moment so will try that whenever it finishes. 😃

p-himik04:08:55

For any future reader - the question has been answered on Zulip.