Fork me on GitHub
#shadow-cljs
<
2021-04-30
>
mss18:04:34

getting a hard-to-parse error on shadow 2.12.5 when trying to compile an app with [email protected] as a dependency:

[2021-04-30 13:37:26.247 - WARNING] :shadow.cljs.devtools.server.util/handle-ex - {:msg {:type :start-autobuild}}
NoClassDefFoundError Could not initialize class cljs.repl__init
	java.lang.Class.forName0 (Class.java:-2)
	java.lang.Class.forName (Class.java:468)
	clojure.lang.RT.classForName (RT.java:2211)
	clojure.lang.RT.classForName (RT.java:2220)
	clojure.lang.RT.loadClassForName (RT.java:2239)
	clojure.lang.RT.load (RT.java:449)
	clojure.lang.RT.load (RT.java:424)
	clojure.core/load/fn--6839 (core.clj:6126)
	clojure.core/load (core.clj:6125)
	clojure.core/load (core.clj:6109)
	clojure.core/load-one (core.clj:5908)
	clojure.core/load-one (core.clj:5903)

mss18:04:54

there are also a number of warnings around using string continuations generated by compiling that dep:

------ WARNING #1 -  -----------------------------------------------------------
 Resource: node_modules/pdfjs-dist/build/pdf.js:9211:32
 String continuations are not recommended. See 
--------------------------------------------------------------------------------
------ WARNING #2 -  -----------------------------------------------------------
 Resource: node_modules/pdfjs-dist/build/pdf.js:9225:34
 String continuations are not recommended. See 
--------------------------------------------------------------------------------
------ WARNING #3 -  -----------------------------------------------------------
 Resource: node_modules/pdfjs-dist/build/pdf.js:9327:34
 String continuations are not recommended. See 
--------------------------------------------------------------------------------
------ WARNING #4 -  -----------------------------------------------------------
 Resource: node_modules/pdfjs-dist/build/pdf.js:9344:36
 String continuations are not recommended. See 
--------------------------------------------------------------------------------

mss18:04:09

any idea what I might be doing wrong?

thheller19:04:50

@mss I'm guessing you are using project.clj or deps.edn to manage dependencies and don't have the proper shadow-cljs+cljs versions. 2.12.x requires cljs 1.10.844

mss20:04:23

was exactly the issue. really appreciate the help + all the work you’ve done on shadow – amazing piece of software

👍 2