This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-07-30
Channels
- # babashka (44)
- # beginners (29)
- # calva (80)
- # cider (11)
- # clara (1)
- # clj-kondo (9)
- # clojure (80)
- # clojure-europe (21)
- # clojure-france (13)
- # clojure-nl (4)
- # clojure-spec (3)
- # clojure-uk (6)
- # clojurescript (72)
- # code-reviews (43)
- # cursive (11)
- # datomic (27)
- # events (13)
- # figwheel-main (12)
- # fulcro (27)
- # graalvm (1)
- # jackdaw (2)
- # kaocha (1)
- # malli (4)
- # meander (13)
- # nrepl (2)
- # pathom (8)
- # re-frame (4)
- # reagent (7)
- # reitit (9)
- # remote-jobs (1)
- # reveal (56)
- # ring-swagger (2)
- # sci (5)
- # shadow-cljs (20)
- # slack-help (2)
- # tools-deps (96)
- # vim (7)
- # xtdb (31)
https://github.com/bhauman/figwheel-main/blob/master/helper-content/missing_index.md says
In this case, you may want to change :open-url to "http://[[server-hostname]]/[[server-port]]/app.html" in order to change the launch page
but should say
In this case, you may want to change :open-url to "http://[[server-hostname]]:[[server-port]]/app.html" in order to change the launch page
note the ":" between hostname and port.wonder if some one can help, struggling with testing I have a simple test file under test/cljs/project/test-file.cljs in deps.edn i have test/cljs added to my paths, when i jack in I can see the testing.js generated and its loaded in the html buut it errprs because none of the test namespace files are put into the cljs-out/dev/project/ folder so i get a js error
what should i be looking for beyond the deps paths that would mean the namespaces are not compiled
^{:extra-main-files
{:devcards {:main cards.core}
:testing {:main example.test-runner}}
:auto-testing true}
{:output-to "resources/public/cljs-out/dev-main.js"
:closure-defines {example.api/url ""}
:optimizations :none
:pretty-print true
;:auto-testing true
:source-map true
:source-map-timestamp true
:devcards true
:main example.core}
{:deps {org.clojure/clojure {:mvn/version "1.10.0"}
org.clojure/clojurescript {:mvn/version "1.10.597"}
reagent {:mvn/version "0.8.1"}
reagent-utils {:mvn/version "0.3.3"}
cljs-ajax {:mvn/version "0.8.0"}
pez/clerk {:mvn/version "1.0.0"}
metosin/reitit {:mvn/version "0.3.1"}
tick {:mvn/version "0.4.23-alpha"}
olical/cljs-test-runner {:mvn/version "3.7.0"}
org.clojure/test.check {:mvn/version "0.10.0"}
venantius/accountant {:mvn/version "0.2.4"}
com.bhauman/figwheel-main {:mvn/version "0.2.11"}
cider/piggieback {:mvn/version "0.5.0"}
devcards {:mvn/version "0.2.7"}
com.bhauman/rebel-readline-cljs {:mvn/version "0.1.4"}
machtfit/reagent-quill {:mvn/version "1.0.0-SNAPSHOT"}}
:paths ["test/cljs" "resources" "cards" "src/cljs"]}
Uncaught Error: goog.require could not find: cljs.example.test_runner that's the error i tend to see in the js console
@oliver.marks are files getting put into the “target” directory?
how do i get vars from .cljc files in .cljs? i have src/foo.clj{s,c}
1. i have foo.cljc with (defn add [a b] (+ a b))
2. i drop into figwheel.main repl and (require '[foo :as f])
3. (f/add 1 2) ;; => WARNING: Use of undeclared Var f/add
@oliver.marks i see :paths
has "test/cljs"
and goog.require
could not find cljs.example.test_runner
, does your file structure have test/cljs/cljs/example/test_runner.cljs
?