This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-12-11
Channels
- # admin-announcements (26)
- # aws (1)
- # beginners (356)
- # boot (28)
- # cider (20)
- # clara (12)
- # cljs-dev (78)
- # cljsrn (22)
- # clojure (333)
- # clojure-brasil (1)
- # clojure-dev (15)
- # clojure-miami (1)
- # clojure-nl (3)
- # clojure-russia (61)
- # clojurecup (3)
- # clojurescript (137)
- # clojurex (4)
- # core-async (4)
- # data-science (3)
- # datavis (2)
- # datomic (31)
- # editors (1)
- # emacs (9)
- # hoplon (3)
- # juxt (8)
- # ldnclj (47)
- # leiningen (4)
- # luminus (4)
- # off-topic (20)
- # om (332)
- # onyx (1)
- # parinfer (23)
- # portland-or (4)
- # proton (161)
- # reagent (46)
- # ring-swagger (11)
- # specter (7)
- # yada (2)
will I get the same behaviour if I use task-options!
from within a task? or is there another way to accomplish that?
@flyboarder: the "Boot for leiningen Users" Wiki page expands a bit on that. Basically yes, you can use task options within task. It's just important that the fn is called top level and not wrapped in sth like with-pre-wrap
hey, so I've updated a project from CLJS version 0.0-2814 to 1.7.170, and now I'm getting told I need to specify :asset-path. The docs are a bit cryptic, what should the asset path be? (:source-paths is already set...)
not sure if it's a boot specific question, but I figured it's to do in the boot conf so may differ from lein answers
@socksy: it can be a cljs Compiler Option or a task option for the reload task
@socksy: do you have a cljs.edn file?
Have you updated boot-cljs boot-reload etc?
Can you paste cljs.edn and build.boot?
@socksy: the pseudo names and unified mode stuff can be deleted
Looks correct besides that though. Can you paste the complete error message?
ClojureScript could not load :main, did you forget to specify :asset-path? localhost:3000:69:80
is the error in firefox
Oh, it's a js error not a Clojure stacktrace
Does your project have an index html or are you loading the js on a different page/port?
there's an index.html, but it looks like those two files aren't being built in the first place
Why what is being required?
The asset-path
compiler option you're missing in this case is useful when the js is loaded on a different host than it is served from. Basically the error says it can't find the compiled js where it expects it
I hope that helps figuring it out