clojurescript 2025-05-20

Any idea why (require 'cljs.main) (cljs.main/-main "--repl") works just fine when used with a CLJS JAR and fails with lots of JS errors in the browser's DevTools when used with CLJS sources?

Uncaught Error: Module goog.debug.Error has been loaded incorrectly. [...]
Uncaught TypeError: goog.debug is undefined
Uncaught Error: Module goog.array has been loaded incorrectly. [...]
[... and so on and so forth ...]

✅ 1

Seems like just some weird cache issue. Removed target and the like and it works now. Although there's still something weird going on - the reported CLJS version is 0.0.340664477.

yeah, there is a lot going on when you run https://github.com/clojure/clojurescript/blob/master/script/build around the version, and also a bunch of things get AOT compiled