lambdaisland

plexus 2017-10-26T10:57:50.000217Z

> 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

2017-10-26T14:34:15.000030Z

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 🙂

1