shadow-cljs

https://github.com/thheller/shadow-cljs | https://github.com/sponsors/thheller | https://www.patreon.com/thheller
2020-10-01T02:03:15.193400Z

It is expected to display the table, but it did not show any thing now if I use the canary.22 version of the lib.

J Crick 2020-10-01T13:41:00.199200Z

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?

isak 2020-10-01T15:05:41.200600Z

@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

isak 2020-10-01T15:06:28.200700Z

Or use that workaround in the docs, I guess

J Crick 2020-10-01T15:23:40.200900Z

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