shadow-cljs
shadow-cljs copied to clipboard
Weird circular dependency
Am I doing something wrong or is this a bug?
Restarting Shadow did help. I think I entered one of the namespaces via in-ns
and required one of the others which created a circular dependency. But recompiling shadow didn't get rid of the circular dependency although it only has been done via REPL.
I mean, it's probably not a bug, it's just an edge case which it's hard to do something about. But you don't really want this to happen to you.
Yes, invoking stuff in the REPL may affect the build in unexpected ways. This one is particularly nasty since it sticks arround until you actually modify the file that had the require
added or restart the build. Separating out REPL-sourced state and file-on-disk-state is kinda tricky so this is a somewhat known limitation.