Has anyone come across this error? I get it when running shadow-cljs watch main
on a clone of https://github.com/fulcrologic/fulcro-rad-demo
Execution error (IllegalArgumentException) at shadow.build.cljs-bridge/eval14597$loading (cljs_bridge.clj:1).\nNo matching field found: getRegisteredGroups for class com.google.javascript.jscomp.DiagnosticGroups\n"
dependency conflict using the wrong clojurescript/closure-compiler version combo
https://shadow-cljs.github.io/docs/UsersGuide.html#failed-to-load
It seems to me that the authors of react-date-picker
are blindly expecting users to be using css loader. I notice that shadow (rightfully), isn't very happy about that
Failed to inspect file
/home/hlolli/Documents/visitor/node_modules/react-calendar/dist/Calendar.css
it was required from
/home/hlolli/Documents/visitor/node_modules/react-date-picker/dist/entry.js
Would override be the good solution here?
(solved)The line is here https://github.com/wojtekmaj/react-date-picker/blob/master/src/entry.js#L1 But it seems they offer a workaround https://github.com/wojtekmaj/react-date-picker/blob/master/src/entry.nostyle.js so probably solvable without any hacking.
@thheller Thanks for the pointer and link, just had a read. The versions seem to match up with the dependencies listed on the shadow-cljs clojars page.
ok ["react-date-picker/dist/entry.nostyle.js" :default DatePicker]
solves it, so it's solved
:js-options {:ignore-asset-requires true}
will just ignore them. that may or may not work depending on the lib.
this is a dependency conflict so you need to resolve it. don't know what else to tell you.