This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-05-25
Channels
- # announcements (9)
- # asami (69)
- # babashka (151)
- # babashka-sci-dev (34)
- # beginners (90)
- # cider (21)
- # clj-on-windows (17)
- # clj-otel (4)
- # cljsrn (5)
- # clojure (27)
- # clojure-austin (3)
- # clojure-europe (87)
- # clojure-gamedev (1)
- # clojure-nl (3)
- # clojure-norway (8)
- # clojure-poland (2)
- # clojure-uk (3)
- # clojured (10)
- # clojurescript (50)
- # core-async (73)
- # cursive (28)
- # data-science (2)
- # datomic (17)
- # etaoin (1)
- # honeysql (6)
- # introduce-yourself (3)
- # jobs (1)
- # joyride (12)
- # malli (5)
- # nbb (14)
- # off-topic (18)
- # pathom (4)
- # podcasts (2)
- # polylith (30)
- # project-updates (3)
- # re-frame (33)
- # reitit (1)
- # remote-jobs (13)
- # shadow-cljs (59)
- # sql (12)
- # tools-build (7)
- # xtdb (36)
Gotcha. Added that, recompiled, does not seemed to have helped.
I made a small demo project to reproduce the problem… and it works! 🫣
I’ll publish it as a guide to help other people with the same issue, and now I can compare back to my broken project and figure out what’s different.
Two things:
1) It looks like my error was not including the -c
flag when starting Krell (should be clj -M -m krell.main -co build.edn -c -r
). I don’t totally understand why the core.js
that was being generated from core.cljs
was changing but not enough.
2) I’m not positive why the path works the way it does (for project/src/js_component_test/core.cljs
and project/js/Test.js
, what works is (js/require "../js/stories/Test.js")
when what you would expect would be ../../
)
The answer to both 1) and 2) is that Krell puts the require
into a file called target/krell_npm_deps.js