Clojurians
#lambdaisland
<
2017-10-26
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

plexus10:10:50

> 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

dhruv114:10:15

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 :slightly_smiling_face: