This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-02-13
Channels
- # adventofcode (35)
- # announcements (2)
- # arachne (1)
- # beginners (71)
- # chestnut (2)
- # cider (100)
- # cljdoc (17)
- # cljs-dev (17)
- # cljsjs (2)
- # cljsrn (2)
- # clojure (53)
- # clojure-austin (2)
- # clojure-europe (1)
- # clojure-finland (2)
- # clojure-italy (3)
- # clojure-nl (7)
- # clojure-russia (56)
- # clojure-spec (56)
- # clojure-uk (35)
- # clojurescript (58)
- # community-development (14)
- # core-async (9)
- # cursive (22)
- # data-science (5)
- # datomic (14)
- # duct (5)
- # emacs (2)
- # expound (4)
- # figwheel-main (6)
- # fulcro (23)
- # kaocha (8)
- # lumo (7)
- # off-topic (10)
- # pathom (6)
- # re-frame (17)
- # reitit (31)
- # ring (3)
- # rum (1)
- # shadow-cljs (45)
- # spacemacs (10)
- # sql (12)
- # testing (9)
- # tools-deps (130)
I'm trying to run some CLJS tests on node with kaocha on a project that uses cljsjs/moment
, and it fails spectacularly. I suspect that the problem is compiling with optimizations other than "none", but I'm unsure how kaoacha-cljs compiles the code?
clojure -A:dev:test --watch
WARNING: symbol already refers to: #'clojure.core/symbol in namespace: kaocha.type.cljs, being replaced by: #'kaocha.core-ext/symbol
[watch] Fatal error in test run #error {
:cause No such namespace: cljsjs.moment, could not locate cljsjs/moment.cljs, cljsjs/moment.cljc, or JavaScript source providing "cljsjs.moment" in file /private/tmp/time-test/src/dingy/core.cljs
:data {:tag :cljs/analysis-error}
:via
[{:type clojure.lang.ExceptionInfo
:message nil
:data #:clojure.error{:source nil, :line nil, :column nil, :phase :compilation}
:at [cljs.analyzer$analyze invokeStatic analyzer.cljc 4128]}
{:type clojure.lang.ExceptionInfo
:message No such namespace: cljsjs.moment, could not locate cljsjs/moment.cljs, cljsjs/moment.cljc, or JavaScript source providing "cljsjs.moment" in file /private/tmp/time-test/src/dingy/core.cljs
:data {:tag :cljs/analysis-error}
:at [cljs.analyzer$error invokeStatic analyzer.cljc 751]}]
:trace