This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-10-26
Channels
- # aws (1)
- # aws-lambda (16)
- # beginners (8)
- # boot (2)
- # cider (4)
- # cljsrn (9)
- # clojure (137)
- # clojure-italy (3)
- # clojure-russia (39)
- # clojure-spec (34)
- # clojure-uk (33)
- # clojurescript (44)
- # core-logic (11)
- # cursive (27)
- # data-science (16)
- # datomic (52)
- # duct (1)
- # emacs (1)
- # figwheel (2)
- # fulcro (90)
- # graphql (3)
- # hoplon (7)
- # lambdaisland (2)
- # leiningen (23)
- # lumo (1)
- # off-topic (1)
- # om (40)
- # onyx (44)
- # re-frame (116)
- # reagent (3)
- # shadow-cljs (87)
> what i did after was require cljsjs.react-draggable in the core ns, this is also where init function is defined. This is by design. "cljsjs.react-draggable" is a "synthetic namespace". when you include it it doesn't really load a namespace, but instead it will prepend the library's JS to the build output. So after you do that any globals that the library defines should exist
sorry what I meant was that I have a ns
called draggable-components
and the core ns
.
when i required the cljsjs.react-draggable
in the draggable-components
ns and complied, it would still create a the folder resources/public/js/compiled/out/cljsjs/react-draggable/
but when i tried to use it, i would get ReactDraggable
is undefined.
however if i required cljsjs.react-draggable
in the core ns
and compiled, it would still create a the folder resources/public/js/compiled/out/cljsjs/react-draggable/
and i was able to use it.
i am not sure if that explanation helps. but i did get things to work 🙂