cljsrn

joshmiller 2022-05-25T02:02:00.973299Z

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

joshmiller 2022-05-25T02:21:30.979759Z

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

joshmiller 2022-05-25T02:22:02.160779Z

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.

joshmiller 2022-05-25T02:36:49.495049Z

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

joshmiller 2022-05-25T19:50:23.457439Z

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