On Thursday, 4 August 2016 18:10:47 UTC+1, Gary Johnson wrote:
> Hi Dviius,
>
> You'll need to share your build.boot with us to get any detailed help.
> However, looking at this error message, I'd say your "boot dev" task is
> expecting to find the cljsjs.semantic-ui namespace as a CLJ file, when it is,
> in fact, a CLJS file.
>
> I just tried building a dummy project that includes this package and requires
> its namespace without any problems. My project structure looked like this:
>
> .
> ├── boot.properties
> ├── build.boot
> └── src
> └── semantic_ui_test
> └── core.cljs
>
> Here's boot.properties:
>
> BOOT_CLOJURE_NAME=org.clojure/clojure
> BOOT_CLOJURE_VERSION=1.7.0
> BOOT_VERSION=2.6.0
>
> Here's build.boot:
>
> (set-env!
> :dependencies '[[org.clojure/clojure "1.9.0-alpha10"]
> [org.clojure/clojurescript "1.9.89"]
> [cljsjs/semantic-ui "2.1.8-0"]
> [com.cemerick/piggieback "0.2.1" :scope "test"]])
>
> Here's core.cljs:
>
> (ns semantic-ui-test.core
> (:require [cljsjs.semantic-ui :as sem]))
>
> (defn try-me []
> (println "Welcome to this project!"))
>
> Opening core.cljs in Emacs and launching M-x cider-jack-in-clojurescript,
> opens up a regular clojure REPL and a clojurescript (Rhino) REPL. Loading
> core.cljs into the clojurescript REPL works without errors for me.
>
> So, as I said, in order to track down your problem, you'll need to share your
> build.boot configuration (particularly so we can see your "boot dev" task).
>
> Good luck,
> Gary
Thanks for your reply, and this is my build.boot file:
(set-env!
:dependencies '[
[adzerk/boot-cljs "1.7.228-1"]
[adzerk/boot-reload "0.4.7"]
[cljsjs/react-burger-menu "1.9.9-0"]
[uk.org.russet/tawny-owl "1.5.0"]
[compojure "1.5.0"]
[hoplon/boot-hoplon "0.1.13"]
[hoplon/castra "3.0.0-SNAPSHOT"]
[hoplon/hoplon "6.0.0-alpha13"]
[org.clojure/clojure "1.9.0-alpha10"]
[org.clojure/clojurescript "1.8.40"]
[seancorfield/boot-expectations "1.0.11"]
[pandeiro/boot-http "0.7.3"]
[ring "1.6.0-beta4"]
[ring/ring-core "1.6.0-beta5"]
[ring/ring-defaults "0.2.0"]]
:resource-paths #{"assets" "src/clj"}
:source-paths #{"src/cljs" "src/hl"})
(require
'[adzerk.boot-cljs :refer [cljs]]
'[adzerk.boot-reload :refer [reload]]
'[hoplon.boot-hoplon :refer [hoplon prerender]]
'[pandeiro.boot-http :refer [serve]])
(deftask run
"Run the project."
[a args ARG [str] "the arguments for the application."]
(require '[coreobjectdesign.core :as app])
(apply (resolve 'app/-main) args))
(deftask dev
"Build coreobjectdesign for local development."
[]
(comp
(serve
:port 8000
:handler 'coreobjectdesign.handler/app
:reload true)
(watch)
(speak)
(hoplon)
(reload)
(cljs)))
(deftask prod
"Build coreobjectdesign for production deployment."
[]
(comp
(hoplon)
(cljs :optimizations :advanced)
(prerender)))
(deftask make-war
"Build a war for deployment"
[]
(comp (hoplon)
(cljs :optimizations :advanced)
(uber :as-jars true)
(web :serve 'coreobjectdesign.domain/montology)
(war)))
I should add that this now works (apart from a build WARNING: boolean? already
refers to: #'clojure.core/boolean? in namespace: cljs.util, being replaced by:
#'cljs.util/boolean?)
My real struggle is in writing the clojurescript function to instantiate and
display a menu. The only example is in javascript, and I don't know how to
transform it.
Any clues would be appreciated.
--
Note that posts from new members are moderated - please be patient with your
first post.
---
You received this message because you are subscribed to the Google Groups
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/clojurescript.