Hey all, I just added datahike to a shadow-cljs project that also happens to include datascript, and I suddenly started seeing this warning:
------ WARNING #1 - :undeclared-var --------------------------------------------
Resource: datascript/core.cljc:586:36
Use of undeclared Var cljs.reader/register-tag-parser!
--------------------------------------------------------------------------------
Which points at this line in datascript: https://github.com/tonsky/datascript/blob/6b0094245d259aa67794d3c9284cd00b2701abec/src/datascript/core.cljc#L588
Datahike unsurprisingly has a similar line: https://github.com/replikativ/datahike/blob/7b70edb7ec7ff7c8fbcc2907d069a3f02866db31/src/datahike/core.cljc#L609
Perhaps there’s some conflict happening with cljs.reader
?Hm…`cljs.reader` is never actually required in the case of datahike. I suppose it technically doesn’t have cljs support, and so the #?(:cljs)
tags might be confusing the compiler.
Datahike supported cljs for a time but with addition of newer features and update of some dependencies it broke. Right now we are discussing whether it is feasible to support both platforms.
Makes sense, thanks