figwheel-main

Dan 2024-07-18T11:25:30.020569Z

I'm trying to port work from shadow-cljs to figwheel for a project. I can't seem to use (line-seq (reader (.getPath (resource "~ACTUAL PATH FROM METADATA"~)))) in a clojure-clojurescript macro in Figwheel-Main, despite it working in shadow-cljs. I get this error: Compile Exception: Cannot invoke ".URL.getPath()" because the return value of "clojure.lang.IFn.invoke(Object)" is null

seancorfield 2024-07-18T16:08:29.880779Z

That sounds like a classpath issue, where resource is returning nil because the specified file is no longer on your classpath (with your figwheel setup) whereas it was with your shadow setup.