shadow-cljs

https://github.com/thheller/shadow-cljs | https://github.com/sponsors/thheller | https://www.patreon.com/thheller
afhammad 2020-11-01T23:10:57.235500Z

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"

thheller 2020-11-01T23:15:11.235900Z

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

2020-11-01T23:28:42.237600Z

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)

2020-11-01T23:30:05.237700Z

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.

afhammad 2020-11-01T23:32:59.238100Z

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

2020-11-01T23:33:15.238400Z

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

thheller 2020-11-01T23:48:22.239200Z

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

thheller 2020-11-01T23:51:25.239300Z

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