Fork me on GitHub
#rewrite-clj
<
2022-04-11
>
olaf01:04:37

I have an issue with rewrite-cljs in my project clj+cljs. • I’m using rewrite-clj/rewrite-clj {:mvn/version "1.0.767-alpha"} only, but when I start shadow-cljs it downloads the dependency rewrite-cljs and return me an error that z/position is missing in the library. • Debugging, I found that it’s using rewrite-cljs (even if is not included in any file in the project). • So I do a rm -r ~/.m2/repository/rewrite-cljs and this time the project build fine but the REPL doesn’t not start/connect

ERROR: Unhandled REPL handler exception processing message {:op eval, :code *ns*, :id 1}
Syntax error macroexpanding at (track_state.clj:157:8).
...
Caused by: java.nio.file.NoSuchFileException: /Users/olaf/.m2/repository/rewrite-cljs/rewrite-cljs/0.4.5/rewrite-cljs-0.4.5.jar
Tried removing .cp-cache, .shadow-cljs folders from the project but nothing

2
lread14:04:52

Hi @U01UYD2CL10! My guess is that some dependency in your project is depending on rewrite-cljs.

lread14:04:23

If you tells shadow-cljs to list dependencies, do you see rewrite-cljs somewhere in there? I’m actually not sure how you do that… maybe npx shadow-cljs info?

lread02:04:59

For lurkers: olaf solved his issue. It was re-frame-10x bringing in an old version of zprint bringing in rewrite-cljs.

🙌 2
👀 2