Fork me on GitHub
J Crick13:10:00

I'm having some trouble using cljsjs/react-select in a reagent project (I'm pretty new to CLJS). The problem is, I get this: The required namespace "cljsjs.react-select" is not available, output from shadow-cljs. The dependencies in my shadow-cljs.edn file look like this:

:dependencies [[binaryage/devtools "1.0.0"]
                [nrepl "0.7.0"]
                [stylefy "2.2.1"]
                [reagent "0.10.0"]
                [cljsjs/react-select "2.4.4-0" :exclusions [cljsjs/react]]]
My require statement inside the reagent component looks like this:
    [stylefy.core :as stylefy
     :refer           [use-style]]))
Does anyone have an idea of what I might be doing wrong---or an example of code working with cljs/react-select that I might be able to consult?


@alibris.lumos For shadow-cljs you shouldn't be using cljsjs , check out this part of the docs:


Or use that workaround in the docs, I guess

J Crick15:10:40

@U08JKUHA9 Thanks for pointing that out! I'll read up on that...