shadow-cljs

bhauman 2026-04-01T16:38:05.351859Z

don't know if anyone has reported this but (load-file ) doesn't seem to be working in the repl. I'm getting goog.nodeGlobalRequire not found type errors? My js runtime is a browser tab inside an electron app

thheller 2026-04-01T17:19:38.079539Z

does the code you are loading make use of that? under normal circumstances this should never exist or be accessed by anything? this works differently in shadow-cljs so not sure what would use it?

thheller 2026-04-01T17:23:48.739339Z

(load-file "src/dev/demo/browser.cljs")
#'demo.browser/the-last-form
cljs.user=> 
works fine for me

thheller 2026-04-01T17:27:12.789519Z

oh. unless you are using this in some kind of nested form and this actually ends up calling (cljs.core/load-file ...), which does indeed call that

thheller 2026-04-01T17:27:37.849899Z

since its a REPL special form that doesn't work, so only works at the top level

bhauman 2026-04-02T14:59:13.431489Z

hmmm gotcha I'll look into it further