This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-12-04
Channels
- # adventofcode (171)
- # beginners (160)
- # boot (13)
- # chestnut (2)
- # cider (6)
- # cljs-dev (15)
- # cljsjs (35)
- # cljsrn (1)
- # clojure (139)
- # clojure-argentina (3)
- # clojure-brasil (1)
- # clojure-greece (31)
- # clojure-italy (5)
- # clojure-russia (5)
- # clojure-spec (18)
- # clojure-uk (11)
- # clojurescript (42)
- # clojurex (6)
- # core-async (12)
- # cursive (14)
- # dirac (13)
- # emacs (13)
- # events (1)
- # fulcro (46)
- # graphql (7)
- # leiningen (10)
- # lumo (3)
- # mount (31)
- # off-topic (20)
- # onyx (30)
- # perun (4)
- # planck (47)
- # re-frame (28)
- # reagent (14)
- # ring (5)
- # shadow-cljs (3)
- # spacemacs (7)
- # specter (13)
- # timbre (3)
- # unrepl (65)
- # yada (8)
hello hello. I was looking into updating the cljsjs package for slate
. Problem: the project now is split into several internal packages (see https://github.com/ianstormtaylor/slate/tree/master/packages). What is the idiomatic way of handling that case (if there is one)?
to expand: shall I provide several externs file in the same package (would that even work?) or create multiple packages…
judging by the treatment of the babel
packages I’d say the latter
Did anyone had issues with react-select (or classnames) package? I got some trouble described here: https://github.com/cljsjs/packages/issues/1418
@olegakbarov
When I do a lein deps :tree
with cljsjs/react-select
as a dep, I get:
[cljsjs/react-select "1.0.0-rc.10-1"]
[cljsjs/classnames "2.2.3-0"]
[cljsjs/react-input-autosize "2.0.0-1"]
i use boot, are there’re equivalent command?
i got this [cljsjs/react-select “1.0.0-rc.10-1” :exclusions [[cljsjs.classnames]]]
lemme remove :exclusions and see…
i removed exclusion, but boot show -d
has same output
are there any way to “clean cache” or smth?
disregard this 🙂
got this now:
[cljsjs/react-select "1.0.0-rc.10-1"]
├── [cljsjs/classnames "2.2.3-0"]
├── [cljsjs/prop-types "15.5.10-1"]
└── [cljsjs/react-input-autosize "2.0.0-1"]
nope… still same error
@olegakbarov You should have the dep available now. maybe you’re caching or something.
@mikerod i tried all possible combinations, but without luck
yeah, sure — the error is in Select package
var className = classNames(‘Select’, this.props.className, {
‘Select--multi’: this.props.multi,
‘Select--single’: !this.props.multi,
‘is-clearable’: this.props.clearable,
‘is-disabled’: this.props.disabled,
‘is-focused’: this.state.isFocused,
‘is-loading’: this.props.isLoading,
‘is-open’: isOpen,
‘is-pseudo-focused’: this.state.isPseudoFocused,
‘is-searchable’: this.props.searchable,
‘has-value’: valueArray.length
});
with classNames defined as:
classNames = classNames && classNames.hasOwnProperty('default') ? classNames['default'] : classNames;
when paused in debugger, classNames is undefined
also, when i require classNames from node_modules and set it as global variable — it do not work either
(def cn
(js/require "classNames"))
(aset js/window "classNames" cn)
im not sure how does require
’ing works in cljsjs, but pretty sure the error might be somewhere in that realm