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.

thheller 2020-10-01T08:03:01.193800Z

as far as I can tell it is the div with height: 100%. if I set that to 200px or so it displays the table just fine?

2020-10-01T08:30:23.194100Z

Thank you @thheller, I think that is the bug in react-data-grid itself, as it is under some big changes in recent versions. Anyway shadow-cljs is a great tool, which ease a lot of pain to use clojurescript.

1👍
thheller 2020-10-01T09:29:09.194400Z

did you maybe install a different version of the package? sometimes stuff is moved to different packages. I vaguely remember someone else reporting and issue but it was something based on the package. can't remember the details though.

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?

2020-10-01T14:49:52.199300Z

I did have the "full" d3 package installed before, but I don't see that either in the package.json or the lockfile anymore, and everything else I deleted and reinstalled as far as I can tell

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