This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-10-01
Channels
- # announcements (8)
- # aws (8)
- # babashka (21)
- # beginners (125)
- # calva (12)
- # cider (10)
- # circleci (29)
- # clara (6)
- # clj-kondo (34)
- # cljdoc (3)
- # cljfx (65)
- # cljs-dev (18)
- # clojure (38)
- # clojure-australia (4)
- # clojure-berlin (5)
- # clojure-czech (2)
- # clojure-dev (15)
- # clojure-europe (22)
- # clojure-nl (3)
- # clojure-uk (31)
- # clojuredesign-podcast (7)
- # clojurescript (87)
- # code-reviews (1)
- # conjure (3)
- # cursive (2)
- # data-science (1)
- # datalog (1)
- # datomic (36)
- # emacs (12)
- # events (1)
- # fulcro (3)
- # graalvm (68)
- # instaparse (2)
- # jackdaw (2)
- # jobs (2)
- # leiningen (8)
- # luminus (2)
- # nrepl (31)
- # pedestal (44)
- # releases (1)
- # remote-jobs (6)
- # shadow-cljs (4)
- # spacemacs (4)
- # sql (13)
- # tools-deps (56)
- # uncomplicate (4)
- # xtdb (40)
- # yada (11)
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:
(:require
[cljsjs.react-select]
[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: https://shadow-cljs.github.io/docs/UsersGuide.html#cljsjs
@U08JKUHA9 Thanks for pointing that out! I'll read up on that...