Fork me on GitHub
#cljsrn
<
2022-05-25
>
joshmiller02:05:00

Gotcha. Added that, recompiled, does not seemed to have helped.

joshmiller02:05:30

I made a small demo project to reproduce the problem… and it works! 🫣

joshmiller02:05:02

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.

joshmiller02:05:49

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 ../../)

joshmiller19:05:23

The answer to both 1) and 2) is that Krell puts the require into a file called target/krell_npm_deps.js