This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-10-30
Channels
- # announcements (15)
- # beginners (143)
- # boot (2)
- # calva (48)
- # cider (93)
- # cljsrn (2)
- # clojure (127)
- # clojure-europe (3)
- # clojure-italy (8)
- # clojure-losangeles (8)
- # clojure-nl (10)
- # clojure-spec (67)
- # clojure-uk (51)
- # clojurescript (20)
- # cursive (9)
- # data-science (2)
- # datomic (10)
- # duct (13)
- # figwheel-main (1)
- # fulcro (74)
- # instaparse (10)
- # jobs (3)
- # joker (8)
- # juxt (4)
- # lumo (1)
- # malli (11)
- # nrepl (3)
- # off-topic (4)
- # pathom (5)
- # pedestal (6)
- # planck (5)
- # re-frame (18)
- # reagent (5)
- # reitit (17)
- # shadow-cljs (165)
- # sql (30)
- # vim (12)
- # xtdb (6)
I’m launching figwheel-main in a Cursive REPL. I’m trying to add a cljs.user
ns with some utility functions for my figwheel-main repl, is there a recommended way of doing this? When I include a user file, I get this error:
[Figwheel] Compiling build main to "resources/public/js/main.js"
[Figwheel] Failed to compile build main in 0.101 seconds.
[Figwheel:WARNING] Could not Analyze resources/public/js/main.out/generated-input-files/gen_test_runner.cljs line:1 column:1
Namespace declarations must appear at the top-level. at line 1 resources/public/js/main.out/generated-input-files/gen_test_runner.cljs
1 (ns figwheel.main.generated.main-auto-test-runner
^---
2 (:require [cljs.test :refer-macros [run-tests]]
3 [cljs-test-display.core]))
4
5 (run-tests (cljs-test-display.core/init! "app-auto-testing"))
Could not Analyze /myroot/dev/user.cljs line:1 column:1
Namespace declarations must appear at the top-level. at line 1 resources/public/js/main.out/generated-input-files/gen_test_runner.cljs
1 (require '[figwheel.main :as fig])
^---
4 (defn some-util [x]
5 (do-some-util-task x))
6