figwheel-main 2024-07-18

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

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.