Fork me on GitHub
#shadow-cljs
<
2020-11-01
>
afhammad23:11:57

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"

afhammad23:11:59

@U05224H0W 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.

thheller23:11:25

this is a dependency conflict so you need to resolve it. don't know what else to tell you.

thheller23:11:11

dependency conflict using the wrong clojurescript/closure-compiler version combo

hlolli23:11:42

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)

hlolli23:11:15

ok ["react-date-picker/dist/entry.nostyle.js" :default DatePicker] solves it, so it's solved

thheller23:11:22

:js-options {:ignore-asset-requires true} will just ignore them. that may or may not work depending on the lib.